All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Matrix Types

Table of Contents

Previous: Vector Operations     Next: Matrix Operations


The Blaze library currently offers two dense matrix types (StaticMatrix and DynamicMatrix) and one sparse matrix type (CompressedMatrix). All matrices can either be stored as row-major matrices or column-major matrices. Per default, all matrices in Blaze are row-major matrices.


StaticMatrix


The blaze::StaticMatrix class template is the representation of a fixed-size matrix with statically allocated elements of arbitrary type. It can be included via the header file

The type of the elements, the number of rows and columns, and the storage order of the matrix can be specified via the four template parameters:

template< typename Type, size_t M, size_t N, bool SO >
class StaticMatrix;


DynamicMatrix


The blaze::DynamicMatrix class template is the representation of an arbitrary sized matrix with $ M \cdot N $ dynamically allocated elements of arbitrary type. It can be included via the header file

The type of the elements and the storage order of the matrix can be specified via the two template parameters:

template< typename Type, bool SO >
class DynamicMatrix;


CompressedMatrix


The blaze::CompressedMatrix class template is the representation of an arbitrary sized sparse matrix with $ M \cdot N $ dynamically allocated elements of arbitrary type. It can be included via the header file

The type of the elements and the storage order of the matrix can be specified via the two template parameters:

template< typename Type, bool SO >
class CompressedMatrix;


Previous: Vector Operations     Next: Matrix Operations