|
template<typename Type , size_t N, bool TF> |
void | blaze::reset (HybridVector< Type, N, TF > &v) |
| Resetting the given hybrid vector. More...
|
|
template<typename Type , size_t N, bool TF> |
void | blaze::clear (HybridVector< Type, N, TF > &v) |
| Clearing the given hybrid vector. More...
|
|
template<typename Type , size_t N, bool TF> |
bool | blaze::isDefault (const HybridVector< Type, N, TF > &v) |
| Returns whether the given hybrid vector is in default state. More...
|
|
template<typename Type , size_t N, bool TF> |
void | blaze::swap (HybridVector< Type, N, TF > &a, HybridVector< Type, N, TF > &b) |
| Swapping the contents of two hybrid vectors. More...
|
|
template<typename Type , size_t N, bool TF>
bool blaze::isDefault |
( |
const HybridVector< Type, N, TF > & |
v | ) |
|
|
inline |
Returns whether the given hybrid vector is in default state.
- Parameters
-
v | The vector to be tested for its default state. |
- Returns
- true in case the given vector is component-wise zero, false otherwise.
This function checks whether the hybrid vector is in default state. For instance, in case the hybrid vector is instantiated for a built-in integral or floating point data type, the function returns true in case all vector elements are 0 and false in case any vector element is not 0. Following example demonstrates the use of the isDefault function: