Content

BLAS Level 1: axpy

axpy (defined in namespace flens::blas) computes \(y \leftarrow y +\alpha x\) where \(x, y\) are vectors and \(\alpha\) is a constant scalar. axpy is short for alpha times x plus y.

We also provide a variant that does the computation for matrices instead of vectors.

Vector Variant

alpha

(input) real scalar
Scaling factor for the values in \(x\).

x

(input) real or complex valued DenseVector
Vector \(x\).

y

(input/output) real or complex valued DenseVector
Vector \(y\).

Matrix Variant (Level 1 Extension)

trans

(input)
Specifiy the operation, i.e.

NoTrans

\(B \leftarrow B + \alpha\, A\)

Trans

\(B \leftarrow B + \alpha\, A^T\)

ConjTrans

\(B \leftarrow B + \alpha\, A^H\)

alpha

(input) real scalar
Scaling factor for the values in \(x\).

A

(input) real or complex valued GeMatrix
Matrix \(A\).

B

(input/output) real or complex valued GeMatrix
Matrix \(B\).