|
template<typename MT , bool AF, bool SO> |
void | blaze::reset (DenseSubmatrix< MT, AF, SO > &dm) |
| Resetting the given dense submatrix. More...
|
|
template<typename MT , bool AF, bool SO> |
void | blaze::clear (DenseSubmatrix< MT, AF, SO > &dm) |
| Clearing the given dense matrix. More...
|
|
template<typename MT , bool AF, bool SO> |
bool | blaze::isDefault (const DenseSubmatrix< MT, AF, SO > &dm) |
| Returns whether the given dense submatrix is in default state. More...
|
|
template<typename MT , bool AF, bool SO>
bool blaze::isDefault |
( |
const DenseSubmatrix< MT, AF, SO > & |
dm | ) |
|
|
inline |
Returns whether the given dense submatrix is in default state.
- Parameters
-
dm | The dense 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: