Content

BLAS Level 1: scal

rscal (defined in namespace flens::blas) computes \(y \leftarrow \alpha y\) for a vector \(y\).

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

Vector Variant

Defined in namespace flens::blas. Function scal with 2 template parameters.

alpha

(input) real scalar
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 \(\alpha\,y\).

Matrix Variant (Level 1 Extension)

alpha

(input) real scalar
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 \(\alpha\,B\).