![]() |
Blaze 3.9
|
Base class for matrices. More...
#include <Matrix.h>
Inherited by blaze::DenseMatrix< MT, SO >, and blaze::SparseMatrix< MT, SO >.
Public Types | |
using | MatrixType = MT |
Type of the matrix. | |
Public Member Functions | |
Conversion operators | |
BLAZE_ALWAYS_INLINE constexpr MT & | operator~ () noexcept |
CRTP-based conversion operation for non-constant matrices. More... | |
BLAZE_ALWAYS_INLINE constexpr const MT & | operator~ () const noexcept |
CRTP-based conversion operation for constant matrices. More... | |
constexpr MT & | operator* () noexcept |
CRTP-based conversion operation for non-constant matrices. More... | |
constexpr const MT & | operator* () const noexcept |
CRTP-based conversion operation for constant matrices. More... | |
Static Public Attributes | |
static constexpr bool | storageOrder = SO |
Storage order of the matrix. | |
Protected Member Functions | |
Special member functions | |
Matrix ()=default | |
Matrix (const Matrix &)=default | |
Matrix (Matrix &&)=default | |
~Matrix ()=default | |
Matrix & | operator= (const Matrix &)=default |
Matrix & | operator= (Matrix &&)=default |
Base class for matrices.
The Matrix class is a base class for all dense and sparse matrix classes within the Blaze library. It provides an abstraction from the actual type of the matrix, but enables a conversion back to this type via the 'Curiously Recurring Template Pattern' (CRTP).
|
constexprnoexcept |
CRTP-based conversion operation for constant matrices.
This operator performs the CRTP-based type-safe downcast to the actual type MT of the matrix. It will return a constant reference to the actual type MT.
|
constexprnoexcept |
CRTP-based conversion operation for non-constant matrices.
This operator performs the CRTP-based type-safe downcast to the actual type MT of the matrix. It will return a mutable reference to the actual type MT.
|
constexprnoexcept |
CRTP-based conversion operation for constant matrices.
matrix | The matrix to be downcast. |
This operator performs the CRTP-based type-safe downcast to the actual type MT of the matrix. It will return a constant reference to the actual type MT.
|
constexprnoexcept |
CRTP-based conversion operation for non-constant matrices.
matrix | The matrix to be downcast. |
This operator performs the CRTP-based type-safe downcast to the actual type MT of the matrix. It will return a mutable reference to the actual type MT.