The FORTRAN level-3 BLAS call for this operation is
Here is replaced by S, D, C, or Z to indicate the datatype of the data (single, double, complex, double precision complex). Parameter UPLO indicates if C is stored in the upper or lower triangular portion of array c. Parameter TRANS indicates if the first operation (when TRANS="No transpose") or the second operation (when TRANS="Transpose") is to be performed. Parameter N indicates the dimension of square matrix C . The ``other'' dimension of A is given in parameter K. Parameters ALPHA and BETA hold the scaling factors and . Parameters A and C equal the addresses of where the matrices A and C start in memory. The leading dimensions of the matrices are given in LDA and LDC.
SUBROUTINE SYRK ( UPLO, TRANS, N, K, ALPHA, A, LDA, BETA, C, LDC )