STD.BLAS.daxpy( N, alpha, X, incX, Y, incY, x_skipped,y_skipped);
N | Number of entries |
alpha | The column major matrix holding the vector |
X | The column major matrix holding the vector X |
incX | The increment for x, 1 in the case of an actual vector |
Y | The column major matrix holding the vector Y |
incY | The increment or stride of Y |
x_skipped | The number of entries stepped over. to get to the first X . |
y_skipped | The number of entries stepped over. to get to the first Y . |
Return: | The updated matrix |
The daxpy function is used to sum two vectors or matrices with a scalar multiplier applied during the sum operation..
Example:
IMPORT STD; STD.BLAS.Types.t_matrix term_1 := [1, 2, 3]; STD.BLAS.Types.t_matrix term_2 := [3, 2, 1]. STD.BLAS.daxpy(3, 2, term_1, 1, term_2, 1); // result is [5, 6, 7]