num::blas::gemm¶
Defined in header <blas/matrix_ops.hpp>
void gemm(real alpha, const real *A, idx lda, bool transA, const real *B, idx ldb,
bool transB, real beta, real *C, idx ldc, idx m, idx n, idx k); // (1)
void gemm(real alpha, const mat<real> &A, bool transA, const mat<real> &B, bool transB,
real beta, mat<real> &C); // (2)
(1) Multiply two matrices (GEMM): \(C \leftarrow \alpha\, op(A)\, op(B) + \beta C\). Row-major with leading dimensions; \(op\) transposes when its flag is set.
(2) Multiply two matrices (GEMM): \(C \leftarrow \alpha\, op(A)\, op(B) + \beta C\). C must already be sized.