|
Blaze 3.9
|
Classes | |
| class | blaze::ZeroMatrix< Type, SO, Tag > |
Efficient implementation of an ![]() | |
ZeroMatrix operators | |
| template<RelaxationFlag RF, typename Type, bool SO, typename Tag> | |
| constexpr bool | blaze::isDefault (const ZeroMatrix< Type, SO, Tag > &m) noexcept |
| Returns whether the given zero matrix is in default state. | |
| template<typename Type, bool SO, typename Tag> | |
| constexpr bool | blaze::isIntact (const ZeroMatrix< Type, SO, Tag > &m) noexcept |
| Returns whether the invariants of the given zero matrix are intact. | |
| template<typename Type, bool SO, typename Tag> | |
| constexpr void | blaze::swap (ZeroMatrix< Type, SO, Tag > &a, ZeroMatrix< Type, SO, Tag > &b) noexcept |
| Swapping the contents of two zero matrices. | |
| template<typename T, bool SO = defaultStorageOrder> | |
| constexpr decltype(auto) | blaze::zero (size_t m, size_t n) noexcept |
| Creating a zero matrix. | |
| template<typename MT, bool SO> | |
| ZeroMatrix< ElementType_t< MT >, SO > | blaze::declzero (const Matrix< MT, SO > &m) |
| Declares the given matrix expression m as zero matrix. | |
|
inline |
Declares the given matrix expression m as zero matrix.
| m | The input matrix. |
The declzero function declares the given dense or sparse matrix expression m as zero matrix. The following example demonstrates the use of the declzero function:
|
constexprnoexcept |
Returns whether the given zero matrix is in default state.
| m | The matrix to be tested for its default state. |
This function checks whether the zero matrix is in default (constructed) state, i.e. if it's number of rows and columns is 0. In case it is in default state, the function returns true, else it will return false. The following example demonstrates the use of the isDefault() function:
Optionally, it is possible to switch between strict semantics (blaze::strict) and relaxed semantics (blaze::relaxed):
|
constexprnoexcept |
Returns whether the invariants of the given zero matrix are intact.
| m | The zero matrix to be tested. |
This function checks whether the invariants of the zero matrix are intact, i.e. if its state is valid. In case the invariants are intact, the function returns true, else it will return false. The following example demonstrates the use of the isIntact() function:
|
constexprnoexcept |
Swapping the contents of two zero matrices.
| a | The first matrix to be swapped. |
| b | The second matrix to be swapped. |
|
constexprnoexcept |
Creating a zero matrix.
| m | The number of rows of the zero matrix. |
| n | The number of columns of the zero matrix. |
This function creates a zero matrix of the given element type and size. By default, the resulting zero matrix is a row-major matrix, but it is possible to specify the storage order explicitly: