General Concepts
The Blaze library currently offers four dense matrix types (StaticMatrix, DynamicMatrix, HybridMatrix, and CustomMatrix) and one sparse matrix type (CompressedMatrix). All matrices can either be stored as row-major matrices or column-major matrices:
DynamicMatrix<int,rowMajor> A( 2UL, 3UL );
A(0,0) = 1; A(0,1) = 2; A(0,2) = 3;
A(1,0) = 4; A(1,1) = 5; A(1,2) = 6;
DynamicMatrix<int,columnMajor> B( 3UL, 2UL );
B(0,0) = 1; B(0,1) = 4;
B(1,0) = 2; B(1,1) = 5;
B(2,0) = 3; B(2,1) = 6;
Per default, all matrices in Blaze are row-major matrices:
Matrix Details
Examples
StaticMatrix<double,6UL,20UL> A;
CompressedMatrix<double,rowMajor> B;
DynamicMatrix<double,columnMajor> C;
C = A * B;
Previous: Vector Operations Next: Matrix Types