All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Matrix/Matrix Multiplication
Previous: Matrix/Matrix Multiplication


The matrix/matrix multiplication can be formulated exactly as in mathematical textbooks:

DynamicMatrix<double> M1( 45UL, 85UL );
CompressedMatrix<float> M2( 85UL, 37UL );
// ... Initialization of the matrices
DynamicMatrix<double> M3 = M1 * M2;

The storage order of the two matrices poses no restrictions on the operation, all variations are possible. Note however that the highest performance for a multiplication between two dense matrices can be expected for two matrices with the same scalar element type.


Previous: Matrix/Vector Multiplication