Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
real(kind=sp), | public, | dimension(test_size) | :: | data | = | 0.0_sp |
Adds two abstract_vector
, i.e. .
Add two abstract_vector
in-place.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_rsp), | intent(inout) | :: | self |
Input/Output vector. |
||
class(abstract_vector_rsp), | intent(in) | :: | vec |
Vector to be added. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=sp), | intent(in) | :: | alpha | |||
class(abstract_vector_rsp), | intent(in) | :: | vec | |||
real(kind=sp), | intent(in) | :: | beta | |||
class(vector_rsp), | intent(inout) | :: | self |
Change the sign of a vector, i.e. .
Changes the sign of the abstract_vector
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_rsp), | intent(inout) | :: | self |
Vector whose entries need to change sign. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_rsp), | intent(in) | :: | self | |||
class(abstract_vector_rsp), | intent(in) | :: | vec |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_rsp), | intent(in) | :: | self |
Computes the norm of the abstract_vector
.
Compute the norm of an abstract_vector
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_rsp), | intent(in) | :: | self |
Vector whose norm needs to be computed. |
Norm of the vector.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_rsp), | intent(inout) | :: | self | |||
logical, | intent(in), | optional | :: | ifnorm |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_rsp), | intent(inout) | :: | self | |||
real(kind=sp), | intent(in) | :: | alpha |
Subtracts two abstract_vector
, i.e. .
Subtract two abstract_vector
in-place.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_rsp), | intent(inout) | :: | self |
Input/Output vector. |
||
class(abstract_vector_rsp), | intent(in) | :: | vec |
Vector to be added. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_rsp), | intent(inout) | :: | self |
type, extends(abstract_vector_rsp), public :: vector_rsp real(sp), dimension(test_size) :: data = 0.0_sp contains private procedure, pass(self), public :: zero => init_zero_rsp procedure, pass(self), public :: dot => dot_rsp procedure, pass(self), public :: scal => scal_rsp procedure, pass(self), public :: axpby => axpby_rsp procedure, pass(self), public :: rand => rand_rsp procedure, pass(self), public :: get_size => get_size_rsp end type vector_rsp