|
Blaze 3.9
|
Classes | |
| class | blaze::CustomMatrix< Type, AF, PF, SO, Tag, RT > |
| Efficient implementation of a customizable matrix. More... | |
CustomMatrix operators | |
| template<RelaxationFlag RF, typename Type, AlignmentFlag AF, PaddingFlag PF, bool SO, typename Tag, typename RT> | |
| bool | blaze::isDefault (const CustomMatrix< Type, AF, PF, SO, Tag, RT > &m) |
| Returns whether the given custom matrix is in default state. | |
| template<typename Type, AlignmentFlag AF, PaddingFlag PF, bool SO, typename Tag, typename RT> | |
| bool | blaze::isIntact (const CustomMatrix< Type, AF, PF, SO, Tag, RT > &m) |
| Returns whether the invariants of the given custom matrix are intact. | |
| template<typename Type, AlignmentFlag AF, PaddingFlag PF, bool SO, typename Tag, typename RT> | |
| void | blaze::swap (CustomMatrix< Type, AF, PF, SO, Tag, RT > &a, CustomMatrix< Type, AF, PF, SO, Tag, RT > &b) noexcept |
| Swapping the contents of two custom matrices. | |
|
inline |
Returns whether the given custom matrix is in default state.
| m | The matrix to be tested for its default state. |
This function checks whether the custom 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):
|
inline |
Returns whether the invariants of the given custom matrix are intact.
| m | The custom matrix to be tested. |
This function checks whether the invariants of the custom 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:
|
inlinenoexcept |
Swapping the contents of two custom matrices.
| a | The first matrix to be swapped. |
| b | The second matrix to be swapped. |