![]() |
Classes | |
class | blaze::DenseSubmatrix< MT, SO > |
View on a specific submatrix of a dense matrix.The DenseSubmatrix template represents a view on a specific submatrix of a dense matrix primitive. The type of the dense matrix is specified via the first template parameter: More... | |
DenseSubmatrix operators | |
template<typename MT , bool SO> | |
void | reset (DenseSubmatrix< MT, SO > &dm) |
Resetting the given dense submatrix. More... | |
template<typename MT , bool SO> | |
void | clear (DenseSubmatrix< MT, SO > &dm) |
Clearing the given dense matrix. More... | |
template<typename MT , bool SO> | |
bool | isDefault (const DenseSubmatrix< MT, SO > &dm) |
Returns whether the given dense submatrix is in default state. More... | |
|
inline |
Clearing the given dense matrix.
dm | The dense matrix to be cleared. |
Clearing a dense submatrix is equivalent to resetting it via the reset() function.
|
inline |
Returns whether the given dense submatrix is in default state.
dm | The dense submatrix to be tested for its default state. |
This function checks whether the submatrix is in default state. For instance, in case the submatrix is instantiated for a built-in integral or floating point data type, the function returns true in case all submatrix elements are 0 and false in case any submatrix element is not 0. The following example demonstrates the use of the isDefault function:
|
inline |
Resetting the given dense submatrix.
dm | The dense submatrix to be resetted. |