![]() |
Classes | |
class | blaze::SparseColumn< typename, bool > |
Reference to a specific column of a sparse matrix.The SparseColumn template represents a reference to a specific column of a sparse matrix primitive. The type of the sparse matrix is specified via the first template parameter: More... | |
SparseColumn operators | |
template<typename MT , bool SO> | |
void | blaze::reset (SparseColumn< MT, SO > &column) |
Resetting the given sparse column. More... | |
template<typename MT , bool SO> | |
void | blaze::clear (SparseColumn< MT, SO > &column) |
Clearing the given sparse column. More... | |
template<typename MT , bool SO> | |
bool | blaze::isDefault (const SparseColumn< MT, SO > &column) |
Returns whether the given sparse column is in default state. More... | |
|
inline |
Clearing the given sparse column.
column | The sparse column to be cleared. |
Clearing a sparse column is equivalent to resetting it via the reset() function.
|
inline |
Returns whether the given sparse column is in default state.
column | The sparse column to be tested for its default state. |
This function checks whether the sparse column is in default state. For instance, in case the column is instantiated for a built-in integral or floating point data type, the function returns true in case all column elements are 0 and false in case any vector element is not 0. The following example demonstrates the use of the isDefault function:
|
inline |
Resetting the given sparse column.
column | The sparse column to be resetted. |