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

Classes

class  blaze::DenseSubvector< VT, AF, TF >
 View on a specific subvector of a dense vector.The DenseSubvector template represents a view on a specific subvector of a dense vector primitive. The type of the dense vector is specified via the first template parameter: More...
 

Subvector operators

template<typename VT , bool AF, bool TF>
void blaze::reset (DenseSubvector< VT, AF, TF > &dv)
 Resetting the given dense subvector. More...
 
template<typename VT , bool AF, bool TF>
void blaze::clear (DenseSubvector< VT, AF, TF > &dv)
 Clearing the given dense subvector. More...
 
template<typename VT , bool AF, bool TF>
bool blaze::isDefault (const DenseSubvector< VT, AF, TF > &dv)
 Returns whether the given dense subvector is in default state. More...
 

Detailed Description

Function Documentation

template<typename VT , bool AF, bool TF>
void blaze::clear ( DenseSubvector< VT, AF, TF > &  dv)
inline

Clearing the given dense subvector.

Parameters
dvThe dense subvector to be cleared.
Returns
void
template<typename VT , bool AF, bool TF>
bool blaze::isDefault ( const DenseSubvector< VT, AF, TF > &  dv)
inline

Returns whether the given dense subvector is in default state.

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

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

// ... Resizing and initialization
if( isDefault( subvector( v, 10UL, 20UL ) ) ) { ... }
template<typename VT , bool AF, bool TF>
void blaze::reset ( DenseSubvector< VT, AF, TF > &  dv)
inline

Resetting the given dense subvector.

Parameters
dvThe dense subvector to be resetted.
Returns
void