Macaulay2 Engine
Loading...
Searching...
No Matches

◆ mult() [10/10]

template<typename Mat>
void MatrixOps::mult ( const Mat & A,
const Mat & B,
Mat & result_product )

the product of two matrices

result_product is set to the product A*B result_product should be a Mat, with the same ring/type as the input matrices A,B. result_product does not need to be the same size as A*B, it will be resized if needed.

throws an engine_error for ring/matrix types where the function is not implemented. throws an error if the number of columns of A is not the number of rows of B. result_prod should not be the same as A or B (assertion error).

Definition at line 197 of file mat-linalg.hpp.

198{
199 (void) A;
200 (void) B;
201 (void) result_product;
202 throw exc::engine_error(
203 "'mult matrices' not implemented for this kind of matrix over this ring");
204}