General Concepts
The Blaze library currently offers five dense matrix types (StaticMatrix, DynamicMatrix, HybridMatrix, CustomMatrix, and UniformMatrix) and three sparse matrix types (CompressedMatrix, IdentityMatrix, and ZeroMatrix). All matrices can either be stored as row-major matrices or column-major matrices:
DynamicMatrix<int,rowMajor> A{ { 1, 2, 3 },
{ 4, 5, 6 } };
DynamicMatrix<int,columnMajor> B{ { 1, 4 },
{ 2, 5 },
{ 3, 6 } };
Efficient implementation of a dynamic matrix.
Definition: DynamicMatrix.h:242
constexpr bool rowMajor
Storage order flag for row-major matrices.
Definition: StorageOrder.h:71
constexpr bool columnMajor
Storage order flag for column-major matrices.
Definition: StorageOrder.h:99
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;
Efficient implementation of a compressed matrix.
Definition: CompressedMatrix.h:239
Efficient implementation of a fixed-sized matrix.
Definition: StaticMatrix.h:249
Previous: Vector Operations Next: Matrix Types