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

Classes

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

DenseColumn operators

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

Detailed Description

Function Documentation

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

Clearing the given dense column.

Parameters
columnThe dense column to be cleared.
Returns
void
template<typename MT , bool SO>
bool blaze::isDefault ( const DenseColumn< MT, SO > &  column)
inline

Returns whether the given dense column is in default state.

Parameters
columnThe dense column to be tested for its default state.
Returns
true in case the given dense column is component-wise zero, false otherwise.

This function checks whether the dense column is in default state. For instance, in case the column is instantiated for a built-in integral or floating point data type, the function returns true in case all column elements are 0 and false in case any column element is not 0. The following example demonstrates the use of the isDefault function:

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

Checks the given dense column for not-a-number elements.

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

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

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

Resetting the given dense column.

Parameters
columnThe dense column to be resetted.
Returns
void