![]() |
Classes | |
class | blaze::DenseSubvector< VT, TF > |
View on a specific subvector of a dense vector.The DenseSubvector template represents a view on a specific subvector of a dense vector primitive. The type of the dense vector is specified via the first template parameter: More... | |
Subvector operators | |
template<typename VT , bool TF> | |
void | blaze::reset (DenseSubvector< VT, TF > &dv) |
Resetting the given dense subvector. More... | |
template<typename VT , bool TF> | |
void | blaze::clear (DenseSubvector< VT, TF > &dv) |
Clearing the given dense subvector. More... | |
template<typename VT , bool TF> | |
bool | blaze::isDefault (const DenseSubvector< VT, TF > &dv) |
Returns whether the given dense subvector is in default state. More... | |
|
inline |
Clearing the given dense subvector.
dv | The dense subvector to be cleared. |
|
inline |
Returns whether the given dense subvector is in default state.
dv | The dense subvector to be tested for its default state. |
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:
|
inline |
Resetting the given dense subvector.
dv | The dense subvector to be resetted. |