Content

BLAS Level 1 Extension: raxpy

raxpy (defined in namespace flens::blas) computes \(y \leftarrow y +\frac{1}{\alpha} x\) where \(x, y\) are vectors and \(\alpha\) is a constant scalar. raxpy is short for reciprocal of 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
Reciprocal 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 + \frac{1}{\alpha}\,A\)

Trans

\(B \leftarrow B + \frac{1}{\alpha}\,A^T\)

ConjTrans

\(B \leftarrow B + \frac{1}{\alpha}\,A^H\)

alpha

(input) real scalar
Reciprocal 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\).