In-place addition of two arrays of extended abstract_vector
.
This interface provides methods to add in-place two arrays of
extended abstract_vector
, i.e.
No out-of-place alternative is currently available in LightKrylov
.
If you do need an out-of-place version, you can combine axpby_basis
with copy
.
type(my_real_vector), dimension(10) :: X
type(my_real_vector), dimension(10) :: Y
real(dp), dimension(10) :: alpha, beta
! ... Whatever your code is doing ...
call axpby_basis(X, alpha, Y, beta)
! ... Rest of your code ...
Compute in-place where
X
and Y
are arrays of abstract_vector
and alpha
and beta
are real(sp)
numbers.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_rsp), | intent(inout) | :: | X(:) |
Input/Ouput array of |
||
real(kind=sp), | intent(in) | :: | alpha |
Scalar multipliers. |
||
class(abstract_vector_rsp), | intent(in) | :: | Y(:) |
Array of |
||
real(kind=sp), | intent(in) | :: | beta |
Scalar multipliers. |
Compute in-place where
X
and Y
are arrays of abstract_vector
and alpha
and beta
are real(dp)
numbers.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_rdp), | intent(inout) | :: | X(:) |
Input/Ouput array of |
||
real(kind=dp), | intent(in) | :: | alpha |
Scalar multipliers. |
||
class(abstract_vector_rdp), | intent(in) | :: | Y(:) |
Array of |
||
real(kind=dp), | intent(in) | :: | beta |
Scalar multipliers. |
Compute in-place where
X
and Y
are arrays of abstract_vector
and alpha
and beta
are complex(sp)
numbers.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_csp), | intent(inout) | :: | X(:) |
Input/Ouput array of |
||
complex(kind=sp), | intent(in) | :: | alpha |
Scalar multipliers. |
||
class(abstract_vector_csp), | intent(in) | :: | Y(:) |
Array of |
||
complex(kind=sp), | intent(in) | :: | beta |
Scalar multipliers. |
Compute in-place where
X
and Y
are arrays of abstract_vector
and alpha
and beta
are complex(dp)
numbers.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(abstract_vector_cdp), | intent(inout) | :: | X(:) |
Input/Ouput array of |
||
complex(kind=dp), | intent(in) | :: | alpha |
Scalar multipliers. |
||
class(abstract_vector_cdp), | intent(in) | :: | Y(:) |
Array of |
||
complex(kind=dp), | intent(in) | :: | beta |
Scalar multipliers. |