|
Blaze 3.9
|
Classes | |
| class | blaze::ZeroVector< Type, TF, Tag > |
| Efficient implementation of an arbitrary sized zero vector. More... | |
ZeroVector operators | |
| template<RelaxationFlag RF, typename Type, bool TF, typename Tag> | |
| constexpr bool | blaze::isDefault (const ZeroVector< Type, TF, Tag > &v) noexcept |
| Returns whether the given zero vector is in default state. | |
| template<typename Type, bool TF, typename Tag> | |
| constexpr bool | blaze::isIntact (const ZeroVector< Type, TF, Tag > &v) noexcept |
| Returns whether the invariants of the given zero vector are intact. | |
| template<typename Type, bool TF, typename Tag> | |
| constexpr void | blaze::swap (ZeroVector< Type, TF, Tag > &a, ZeroVector< Type, TF, Tag > &b) noexcept |
| Swapping the contents of two zero vectors. | |
| template<typename T, bool TF = defaultTransposeFlag> | |
| constexpr decltype(auto) | blaze::zero (size_t n) noexcept |
| Creating a zero vector. | |
| template<typename VT, bool TF> | |
| ZeroVector< ElementType_t< VT >, TF > | blaze::declzero (const Vector< VT, TF > &v) |
| Declares the given vector expression v as zero vector. | |
|
inline |
Declares the given vector expression v as zero vector.
| v | The input vector. |
The declzero function declares the given dense or sparse vector expression m as zero vector. The following example demonstrates the use of the declzero function:
|
constexprnoexcept |
Returns whether the given zero vector is in default state.
| v | The zero vector to be tested for its default state. |
This function checks whether the zero vector is in default (constructed) state, i.e. if it's size 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 vector are intact.
| v | The zero vector to be tested. |
This function checks whether the invariants of the zero vector 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 vectors.
| a | The first zero vector to be swapped. |
| b | The second zero vector to be swapped. |
|
constexprnoexcept |
Creating a zero vector.
| n | The size of the zero vector. |
This function creates a zero vector of the given element type and size. By default, the resulting zero vector is a column vector, but it is possible to specify the transpose flag explicitly: