|
template<typename MT , bool AF, bool SO> |
void | blaze::reset (SparseSubmatrix< MT, AF, SO > &sm) |
| Resetting the given sparse submatrix. More...
|
|
template<typename MT , bool AF, bool SO> |
void | blaze::clear (SparseSubmatrix< MT, AF, SO > &sm) |
| Clearing the given sparse matrix. More...
|
|
template<typename MT , bool AF, bool SO> |
bool | blaze::isDefault (const SparseSubmatrix< MT, AF, SO > &sm) |
| Returns whether the given sparse submatrix is in default state. More...
|
|
template<typename MT , bool AF, bool SO>
bool blaze::isDefault |
( |
const SparseSubmatrix< MT, AF, SO > & |
sm | ) |
|
|
inline |
Returns whether the given sparse submatrix is in default state.
- Parameters
-
sm | The sparse submatrix to be tested for its default state. |
- Returns
- true in case the given submatrix is component-wise zero, false otherwise.
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: