STD.BLAS.dgemm( transposeA, transposeB, M, N, K, alpha, A, B, beta, C);
| transposeA | True when transpose of A is used |
| transposeB | True when transpose of B is used |
| M | Number of rows in product |
| N | Number of columns in product |
| K | Number of columns/rows for the multiplier/multiplicand |
| alpha | Scalar used on A |
| A | Matrix A |
| B | Matrix B |
| beta | Scalar for matirx C |
| C | Matrix C (or empty) |
| Return: | The updated matrix |
The dgemm function is used to multiply two matrices and optionally add that product to another matrix.
Example:
IMPORT STD;
STD.BLAS.Types.t_matrix term_a := [2, 4, 8];
STD.BLAS.Types.t_matrix term_c := [2, 1, 1];
STD.BLAS.dgemm(TRUE, FALSE, 3, 3, 1, 1, term_a, term_b);
//the outer product of the term_a and term_b vectors
//result is [4,8, 16, 2, 4, 8, 2, 4, 8]