Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
complex(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_csp), | intent(inout) | :: | self |
Input/Output vector. |
||
class(abstract_vector_csp), | intent(in) | :: | vec |
Vector to be added. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=sp), | intent(in) | :: | alpha | |||
class(abstract_vector_csp), | intent(in) | :: | vec | |||
complex(kind=sp), | intent(in) | :: | beta | |||
class(vector_csp), | 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_csp), | intent(inout) | :: | self |
Vector whose entries need to change sign. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_csp), | intent(in) | :: | self | |||
class(abstract_vector_csp), | intent(in) | :: | vec |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_csp), | 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_csp), | intent(in) | :: | self |
Vector whose norm needs to be computed. |
Norm of the vector.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_csp), | intent(inout) | :: | self | |||
logical, | intent(in), | optional | :: | ifnorm |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_csp), | intent(inout) | :: | self | |||
complex(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_csp), | intent(inout) | :: | self |
Input/Output vector. |
||
class(abstract_vector_csp), | intent(in) | :: | vec |
Vector to be added. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_csp), | intent(inout) | :: | self |
type, extends(abstract_vector_csp), public :: vector_csp complex(sp), dimension(test_size) :: data = 0.0_sp contains private procedure, pass(self), public :: zero => init_zero_csp procedure, pass(self), public :: dot => dot_csp procedure, pass(self), public :: scal => scal_csp procedure, pass(self), public :: axpby => axpby_csp procedure, pass(self), public :: rand => rand_csp procedure, pass(self), public :: get_size => get_size_csp end type vector_csp