All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes
SparseRow

Classes

class  blaze::SparseRow< typename, bool >
 Reference to a specific row of a sparse matrix.The SparseRow template represents a reference to a specific row of a sparse matrix primitive. The type of the sparse matrix is specified via the first template parameter: More...
 

SparseRow operators

template<typename MT , bool SO>
void blaze::reset (SparseRow< MT, SO > &row)
 Resetting the given sparse row. More...
 
template<typename MT , bool SO>
void blaze::clear (SparseRow< MT, SO > &row)
 Clearing the given sparse row. More...
 
template<typename MT , bool SO>
bool blaze::isnan (const SparseRow< MT, SO > &row)
 Checks the given sparse row for not-a-number elements. More...
 
template<typename MT , bool SO>
bool blaze::isDefault (const SparseRow< MT, SO > &row)
 Returns whether the given sparse row is in default state. More...
 

Detailed Description

Function Documentation

template<typename MT , bool SO>
void blaze::clear ( SparseRow< MT, SO > &  row)
inline

Clearing the given sparse row.

Parameters
rowThe sparse row to be cleared.
Returns
void
template<typename MT , bool SO>
bool blaze::isDefault ( const SparseRow< MT, SO > &  row)
inline

Returns whether the given sparse row is in default state.

Parameters
rowThe sparse row to be tested for its default state.
Returns
true in case the given row is component-wise zero, false otherwise.

This function checks whether the sparse 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 vector element is not 0. The following example demonstrates the use of the isDefault function:

// ... Resizing and initialization
if( isDefault( row( A, 0UL ) ) ) { ... }
template<typename MT , bool SO>
bool blaze::isnan ( const SparseRow< MT, SO > &  row)
inline

Checks the given sparse row for not-a-number elements.

Parameters
rowThe sparse row to be checked for not-a-number elements.
Returns
true if at least one element of the row is not-a-number, false otherwise.

This function checks the sparse row for not-a-number (NaN) elements. If at least one element of the row is not-a-number, the function returns true, otherwise it returns false.

// ... Resizing and initialization
if( isnan( row( A, 0UL ) ) ) { ... }
template<typename MT , bool SO>
void blaze::reset ( SparseRow< MT, SO > &  row)
inline

Resetting the given sparse row.

Parameters
rowThe sparse row to be resetted.
Returns
void