general interface of the BLAS AXPY routines, will call SAXPY, DAXPY, CAXPY, ZAXPY
Usage: call pic_axpy(n, alpha, x, incx, y, incy)
where n is the number of elements, alpha is the scaling factor, x is the input vector, incx is the increment for x, y is the output vector, and incy is the increment for y.
The vectors x and y must be allocatable arrays, we deduce the shapes from them. The increments incx and incy are 1 by default.
interface for single precision AXPY
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=sp), | intent(in) | :: | x(:) | |||
real(kind=sp), | intent(inout) | :: | y(:) | |||
real(kind=sp), | intent(in), | optional | :: | alpha |
interface for double precision AXPY
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | x(:) | |||
real(kind=dp), | intent(inout) | :: | y(:) | |||
real(kind=dp), | intent(in), | optional | :: | alpha |
interface for single precision complex AXPY
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=sp), | intent(in) | :: | x(:) | |||
complex(kind=sp), | intent(inout) | :: | y(:) | |||
complex(kind=sp), | intent(in), | optional | :: | alpha |
interface for double precision complex AXPY
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
complex(kind=dp), | intent(in) | :: | x(:) | |||
complex(kind=dp), | intent(inout) | :: | y(:) | |||
complex(kind=dp), | intent(in), | optional | :: | alpha |