STD.BLAS.dscal( N, alpha, X, incX, skipped);
N | Number of elements in the vector |
alpha | The scaling factor |
X | The column major matrix holding the vector |
incX | The stride to get to the next element in the vector |
skipped | The 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