|
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> |
void | blaze::move (HybridVector< Type, N, TF > &dst, HybridVector< Type, N, TF > &src) |
| Moving the contents of one hybrid vector to another. More...
|
|
template<typename Type, size_t N, bool TF = defaultTransposeFlag>
Compilation flag for SMP assignments.
The smpAssignable compilation flag indicates whether the vector can be used in SMP (shared memory parallel) assignments (both on the left-hand and right-hand side of the assignment).
template<typename Type, size_t N, bool TF = defaultTransposeFlag>
Compilation flag for intrinsic optimization.
The vectorizable compilation flag indicates whether expressions the vector is involved in can be optimized via intrinsics. In case the element type of the vector is a vectorizable data type, the vectorizable compilation flag is set to true, otherwise it is set to false.
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 hybrid vector to be tested for its default state. |
- Returns
- true in case the given vector's size is zero, false otherwise.
This function checks whether the hybrid 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: