|
template<typename MT , bool SO> |
void | blaze::reset (DenseRow< MT, SO > &row) |
| Resetting the given dense row. More...
|
|
template<typename MT , bool SO> |
void | blaze::clear (DenseRow< MT, SO > &row) |
| Clearing the given dense row. More...
|
|
template<typename MT , bool SO> |
bool | blaze::isnan (const DenseRow< MT, SO > &row) |
| Checks the given dense row for not-a-number elements. More...
|
|
template<typename MT , bool SO> |
bool | blaze::isDefault (const DenseRow< MT, SO > &row) |
| Returns whether the given dense row is in default state. More...
|
|
template<typename MT , bool SO>
bool blaze::isDefault |
( |
const DenseRow< MT, SO > & |
row | ) |
|
|
inline |
Returns whether the given dense row is in default state.
- Parameters
-
row | The dense row to be tested for its default state. |
- Returns
- true in case the given dense row is component-wise zero, false otherwise.
This function checks whether the dense row is in default state. For instance, in case the row is instantiated for a built-in integral or floating point data type, the function returns true in case all row elements are 0 and false in case any row element is not 0. The following example demonstrates the use of the isDefault function: