Function gemm (o2scl_cblas)

O2scl : Function List

template<class mat_t, class fp_t>
void o2scl_cblas::gemm(const enum o2cblas_order Order, const enum o2cblas_transpose TransA, const enum o2cblas_transpose TransB, const size_t M, const size_t N, const size_t K, const fp_t alpha, const mat_t &A, const mat_t &B, const fp_t beta, mat_t &C)

Compute \( C=\alpha \mathrm{op}(A) \mathrm{op}(B) + \beta C \).

When both TransA and TransB are NoTrans, this function operates on the first M rows and K columns of matrix A, and the first K rows and N columns of matrix B to produce a matrix C with M rows and N columns.

This function works for all values of Order, TransA, and TransB.