daxpy

STD.BLAS.daxpy( N, alpha, X, incX, Y, incY, x_skipped,y_skipped);

NNumber of entries
alphaThe column major matrix holding the vector
XThe column major matrix holding the vector X
incXThe increment for x, 1 in the case of an actual vector
YThe column major matrix holding the vector Y
incYThe increment or stride of Y
x_skippedThe number of entries stepped over. to get to the first X .
y_skippedThe 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]