![]() |
Classes | |
class | blaze::SparseSubvector< typename, bool > |
View on a specific subvector of a sparse vector.The SparseSubvector template represents a view on a specific subvector of a sparse vector primitive. The type of the sparse vector is specified via the first template parameter: More... | |
SparseSubvector operators | |
template<typename VT , bool TF> | |
void | blaze::reset (SparseSubvector< VT, TF > &sv) |
Resetting the given sparse subvector. More... | |
template<typename VT , bool TF> | |
void | blaze::clear (SparseSubvector< VT, TF > &sv) |
Clearing the given sparse subvector. More... | |
template<typename VT , bool TF> | |
bool | blaze::isDefault (const SparseSubvector< VT, TF > &sv) |
Returns whether the given sparse subvector is in default state. More... | |
|
inline |
Clearing the given sparse subvector.
sv | The sparse subvector to be cleared. |
Clearing a sparse subvector is equivalent to resetting it via the reset() function.
|
inline |
Returns whether the given sparse subvector is in default state.
sv | The sparse subvector to be tested for its default state. |
This function checks whether the sparse 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 element is not 0. The following example demonstrates the use of the isDefault function:
|
inline |
Resetting the given sparse subvector.
sv | The sparse subvector to be resetted. |