Content

BLAS Level 1: rscal

rscal (defined in namespace flens::blas) computes \(y \leftarrow \frac{1}{\alpha} y\) for a vector \(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 \(y\).

y

(input/output) real or complex valued DenseVector
On entry the original vector \(y\).
On exit overwritten with \(\frac{1}{\alpha}\,y\).

Matrix Variant (Level 1 Extension)

alpha

(input) real scalar
Reciprocal scaling factor for the values in \(y\).

B

(input/output) real or complex valued GeMatrix
On entry the original matrix \(B\).
On exit overwritten with \(\frac{1}{\alpha}\,B\).