This file contains the following BLAS routines dcopy, ddot, dnrm2, dscal required by subroutines lsmr and acheck.
Note
This version has not been linked with an external BLAS library, and uses the BLAS functions in this module.
Dot product of two vectors.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ip), | intent(in) | :: | n |
the number of entries in the vectors. |
||
real(kind=wp), | intent(in) | :: | dx(*) |
the first vector |
||
integer(kind=ip), | intent(in) | :: | incx |
the increment between successive entries in DX. |
||
real(kind=wp), | intent(in) | :: | dy(*) |
the second vector |
||
integer(kind=ip), | intent(in) | :: | incy |
the increment between successive entries in DY. |
The euclidean norm of a vector sqrt ( X' * X )
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ip), | intent(in) | :: | n | |||
real(kind=wp), | intent(in) | :: | x(*) | |||
integer(kind=ip), | intent(in) | :: | incx |
Copies a vector X to a vector Y.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ip) | :: | n | ||||
real(kind=wp) | :: | dx(*) | ||||
integer(kind=ip) | :: | incx | ||||
real(kind=wp) | :: | dy(*) | ||||
integer(kind=ip) | :: | incy |
Scales a vector by a constant.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=ip), | intent(in) | :: | n |
the number of entries in the vector. |
||
real(kind=wp), | intent(in) | :: | sa |
the multiplier. |
||
real(kind=wp), | intent(inout) | :: | x(*) |
the vector to be scaled. |
||
integer(kind=ip), | intent(in) | :: | incx |
the increment between successive entries of X. |