|
Blaze 3.9
|
Classes | |
| class | blaze::IdentityMatrix< Type, SO, Tag > |
Efficient implementation of an ![]() | |
IdentityMatrix operators | |
| template<RelaxationFlag RF, typename Type, bool SO, typename Tag> | |
| constexpr bool | blaze::isDefault (const IdentityMatrix< Type, SO, Tag > &m) noexcept |
| Returns whether the given identity matrix is in default state. | |
| template<typename Type, bool SO, typename Tag> | |
| constexpr bool | blaze::isIntact (const IdentityMatrix< Type, SO, Tag > &m) noexcept |
| Returns whether the invariants of the given identity matrix are intact. | |
| template<typename Type, bool SO, typename Tag> | |
| constexpr void | blaze::swap (IdentityMatrix< Type, SO, Tag > &a, IdentityMatrix< Type, SO, Tag > &b) noexcept |
| Swapping the contents of two identity matrices. | |
| template<typename MT, bool SO> | |
| IdentityMatrix< ElementType_t< MT >, SO > | blaze::declid (const Matrix< MT, SO > &m) |
| Declares the given matrix expression m as identity matrix. | |
|
inline |
Declares the given matrix expression m as identity matrix.
| m | The input matrix. |
| std::invalid_argument | Invalid identity matrix specification. |
The declid function declares the given dense or sparse matrix expression m as identity matrix. In case the given matrix is not a square matrix, a std::invalid_argument exception is thrown.
The following example demonstrates the use of the declid function:
|
constexprnoexcept |
Returns whether the given identity matrix is in default state.
| m | The matrix to be tested for its default state. |
This function checks whether the identity 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 identity matrix are intact.
| m | The identity matrix to be tested. |
This function checks whether the invariants of the identity 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 identity matrices.
| a | The first matrix to be swapped. |
| b | The second matrix to be swapped. |