Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
complex(kind=sp), | public, | allocatable | :: | data(:) | |||
integer, | public | :: | n |
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. |
In-place computation of .
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(dense_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. |
Computes the dot product between two abstract_vector_csp
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dense_vector_csp), | intent(in) | :: | self | |||
class(abstract_vector_csp), | intent(in) | :: | vec |
Return size of specific abstract vector
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dense_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.
Creates a random abstract_vector_csp
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dense_vector_csp), | intent(inout) | :: | self | |||
logical, | intent(in), | optional | :: | ifnorm |
Compute the scalar-vector product.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dense_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. |
Sets an abstract_vector_csp
to zero.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(dense_vector_csp), | intent(inout) | :: | self |