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

Classes

class  blaze::DenseRow< MT, SO >
 Reference to a specific row of a dense matrix.The DenseRow template represents a reference to a specific row of a dense matrix primitive. The type of the dense matrix is specified via the first template parameter: More...
 

DenseRow operators

template<typename MT , bool SO>
void reset (DenseRow< MT, SO > &row)
 Resetting the given dense row. More...
 
template<typename MT , bool SO>
void clear (DenseRow< MT, SO > &row)
 Clearing the given dense row. More...
 
template<typename MT , bool SO>
bool isDefault (const DenseRow< MT, SO > &row)
 Returns whether the given dense row is in default state. More...
 

Detailed Description

Function Documentation

template<typename MT , bool SO>
void clear ( DenseRow< MT, SO > &  row)
inlineprivate

Clearing the given dense row.

Parameters
rowThe dense row to be cleared.
Returns
void

Clearing a dense row is equivalent to resetting it via the reset() function.

template<typename MT , bool SO>
bool isDefault ( const DenseRow< MT, SO > &  row)
inlineprivate

Returns whether the given dense row is in default state.

Parameters
rowThe 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:

// ... Resizing and initialization
if( isDefault( row( A, 0UL ) ) ) { ... }
template<typename MT , bool SO>
void reset ( DenseRow< MT, SO > &  row)
inlineprivate

Resetting the given dense row.

Parameters
rowThe dense row to be resetted.
Returns
void