|
Blaze 3.9
|
Classes | |
| class | blaze::UniformVector< Type, TF, Tag > |
| Efficient implementation of a uniform vector. More... | |
UniformVector operators | |
| template<RelaxationFlag RF, typename Type, bool TF, typename Tag> | |
| constexpr bool | blaze::isDefault (const UniformVector< Type, TF, Tag > &v) |
| Returns whether the given uniform vector is in default state. | |
| template<typename Type, bool TF, typename Tag> | |
| constexpr bool | blaze::isIntact (const UniformVector< Type, TF, Tag > &v) noexcept |
| Returns whether the invariants of the given uniform vector are intact. | |
| template<typename Type, bool TF, typename Tag> | |
| constexpr void | blaze::swap (UniformVector< Type, TF, Tag > &a, UniformVector< Type, TF, Tag > &b) noexcept |
| Swapping the contents of two vectors. | |
| template<bool TF = defaultTransposeFlag, typename T> | |
| constexpr decltype(auto) | blaze::uniform (size_t n, T &&init) |
| Creating a uniform vector. | |
|
constexpr |
Returns whether the given uniform vector is in default state.
| v | The uniform vector to be tested for its default state. |
This function checks whether the uniform 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 uniform vector are intact.
| v | The uniform vector to be tested. |
This function checks whether the invariants of the uniform 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 vectors.
| a | The first vector to be swapped. |
| b | The second vector to be swapped. |
|
constexpr |
Creating a uniform vector.
| n | The size of the vector. |
| init | The initial value of the vector elements. |
This function creates a uniform vector of the given size. By default, the resulting uniform vector is a column vector, but it is possible to specify the transpose flag explicitly: