|
Blaze 3.9
|
Classes | |
| class | blaze::UniformMatrix< Type, SO, Tag > |
| Efficient implementation of a uniform matrix. More... | |
UniformMatrix operators | |
| template<RelaxationFlag RF, typename Type, bool SO, typename Tag> | |
| constexpr bool | blaze::isDefault (const UniformMatrix< Type, SO, Tag > &m) |
| Returns whether the given uniform matrix is in default state. | |
| template<typename Type, bool SO, typename Tag> | |
| constexpr bool | blaze::isIntact (const UniformMatrix< Type, SO, Tag > &m) noexcept |
| Returns whether the invariants of the given uniform matrix are intact. | |
| template<typename Type, bool SO, typename Tag> | |
| constexpr void | blaze::swap (UniformMatrix< Type, SO, Tag > &a, UniformMatrix< Type, SO, Tag > &b) noexcept |
| Swapping the contents of two uniform matrices. | |
| template<bool SO = defaultStorageOrder, typename T> | |
| constexpr decltype(auto) | blaze::uniform (size_t m, size_t n, T &&init) |
| Creating a uniform matrix. | |
|
constexpr |
Returns whether the given uniform matrix is in default state.
| m | The matrix to be tested for its default state. |
This function checks whether the uniform 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 uniform matrix are intact.
| m | The uniform matrix to be tested. |
This function checks whether the invariants of the uniform 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 uniform matrices.
| a | The first matrix to be swapped. |
| b | The second matrix to be swapped. |
|
constexpr |
Creating a uniform matrix.
| m | The number of rows of the uniform matrix. |
| n | The number of columns of the uniform matrix. |
| init | The initial value of the matrix elements. |
This function creates a uniform matrix of the given size. By default, the resulting uniform matrix is a row-major matrix, but it is possible to specify the storage order explicitly: