dscal

STD.BLAS.dscal( N, alpha, X, incX, skipped);

NNumber of elements in the vector
alphaThe scaling factor
XThe column major matrix holding the vector
incXThe stride to get to the next element in the vector
skippedThe number of elements skipped to get to the first element
Return:The updated matrix

The dscal function scales a vector alpha.

Example:

IMPORT STD;
STD.BLAS.Types.matrix_t test := [1, 1, 1, 2, 2, 2, 3, 3, 3];
result := STD.BLAS.dscal(9, 2.0, test, 1); // multiply each element by 2