| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| complex(kind=dp), | public | :: | x | = | cmplx(0.0_dp, 0.0_dp, kind=dp) | ||
| complex(kind=dp), | public | :: | y | = | cmplx(0.0_dp, 0.0_dp, kind=dp) | ||
| complex(kind=dp), | public | :: | z | = | cmplx(0.0_dp, 0.0_dp, kind=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(state_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(state_vector_cdp), | intent(in) | :: | self | |||
| class(abstract_vector_cdp), | intent(in) | :: | vec |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(state_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(state_vector_cdp), | intent(inout) | :: | self | |||
| logical, | intent(in), | optional | :: | ifnorm |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(state_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 subtracted. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(state_vector_cdp), | intent(inout) | :: | self |
type, extends(abstract_vector_cdp), public :: state_vector_cdp complex(dp) :: x = cmplx(0.0_dp, 0.0_dp, kind=dp) complex(dp) :: y = cmplx(0.0_dp, 0.0_dp, kind=dp) complex(dp) :: z = cmplx(0.0_dp, 0.0_dp, kind=dp) contains private procedure, pass(self), public :: zero => zero_state_cdp procedure, pass(self), public :: dot => dot_state_cdp procedure, pass(self), public :: scal => scal_state_cdp procedure, pass(self), public :: axpby => axpby_state_cdp procedure, pass(self), public :: rand => rand_state_cdp procedure, pass(self), public :: get_size => get_size_state_cdp end type state_vector_cdp