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