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