Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
complex(kind=dp), | public, | dimension(test_size) | :: | data | = | 0.0_dp |
Adds two abstract_vector
, i.e. .
Add two abstract_vector
in-place.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_cdp), | intent(inout) | :: | self |
Input/Output vector. |
||
class(abstract_vector_cdp), | intent(in) | :: | vec |
Vector to be added. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=dp), | intent(in) | :: | alpha | |||
class(abstract_vector_cdp), | intent(in) | :: | vec | |||
complex(kind=dp), | intent(in) | :: | beta | |||
class(vector_cdp), | 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_cdp), | intent(inout) | :: | self |
Vector whose entries need to change sign. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_cdp), | intent(in) | :: | self | |||
class(abstract_vector_cdp), | intent(in) | :: | vec |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_cdp), | 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_cdp), | intent(in) | :: | self |
Vector whose norm needs to be computed. |
Norm of the vector.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_cdp), | intent(inout) | :: | self | |||
logical, | intent(in), | optional | :: | ifnorm |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_cdp), | intent(inout) | :: | self | |||
complex(kind=dp), | intent(in) | :: | alpha |
Subtracts two abstract_vector
, i.e. .
Subtract two abstract_vector
in-place.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_cdp), | intent(inout) | :: | self |
Input/Output vector. |
||
class(abstract_vector_cdp), | intent(in) | :: | vec |
Vector to be added. |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(vector_cdp), | intent(inout) | :: | self |
type, extends(abstract_vector_cdp), public :: vector_cdp complex(dp), dimension(test_size) :: data = 0.0_dp contains private procedure, pass(self), public :: zero => init_zero_cdp procedure, pass(self), public :: dot => dot_cdp procedure, pass(self), public :: scal => scal_cdp procedure, pass(self), public :: axpby => axpby_cdp procedure, pass(self), public :: rand => rand_cdp procedure, pass(self), public :: get_size => get_size_cdp end type vector_cdp