|
template<typename VT , bool AF, bool TF> |
void | blaze::reset (DenseSubvector< VT, AF, TF > &dv) |
| Resetting the given dense subvector. More...
|
|
template<typename VT , bool AF, bool TF> |
void | blaze::clear (DenseSubvector< VT, AF, TF > &dv) |
| Clearing the given dense subvector. More...
|
|
template<typename VT , bool AF, bool TF> |
bool | blaze::isDefault (const DenseSubvector< VT, AF, TF > &dv) |
| Returns whether the given dense subvector is in default state. More...
|
|
template<typename VT , bool AF, bool TF>
bool blaze::isDefault |
( |
const DenseSubvector< VT, AF, TF > & |
dv | ) |
|
|
inline |
Returns whether the given dense subvector is in default state.
- Parameters
-
dv | The dense subvector to be tested for its default state. |
- Returns
- true in case the given subvector is component-wise zero, false otherwise.
This function checks whether the dense subvector is in default state. For instance, in case the subvector is instantiated for a vector of built-in integral or floating point data type, the function returns true in case all subvector elements are 0 and false in case any subvector element is not 0. The following example demonstrates the use of the isDefault function: