dsyrk

STD.BLAS.dsyrk( tri, transposeA, N, K, alpha, A, beta, C, clear);

triIndicates whether upper or lower triangle is used
transposeATranspose the A matrix to be NxK
NNumber of rows
KNumber of columns in the update matrix or transpose
alphaThe alpha scalar
AThe update matrix, either NxK or KxN
betaThe beta scalar
CThe matrix to update
clearClear the triangle that is not updated. BLAS assumes that symmetric matrices have only one of the triangles and this option lets you make that true.
Return:The updated matrix

The dsyrk function implements a symmetric rank update C <- alpha A**T A + beta C or c <- alpha A A**T + beta C. C is N x N.

Example:

IMPORT STD;
STD.BLAS.Types.matrix_t initC := [1, 1, 1, 2, 2, 2, 3, 3, 3];
STD.BLAS.Types.matrix_t initA := [1, 1, 1];
Test1_mat := STD.BLAS.dsyrk(STD.BLAS.Types.Triangle.upper, FALSE, 3, 1, 1, initA, 1, initC, TRUE)