|
template<typename MT , bool AF, bool SO> |
void | blaze::reset (DenseSubmatrix< MT, AF, SO > &dm) |
| Resetting the given dense submatrix. More...
|
|
template<typename MT , bool AF, bool SO> |
void | blaze::reset (DenseSubmatrix< MT, AF, SO > &dm, size_t i) |
| Reset the specified row/column of the given dense submatrix. More...
|
|
template<typename MT , bool AF, bool SO> |
void | blaze::clear (DenseSubmatrix< MT, AF, SO > &dm) |
| Clearing the given dense matrix. More...
|
|
template<typename MT , bool AF, bool SO> |
bool | blaze::isDefault (const DenseSubmatrix< MT, AF, SO > &dm) |
| Returns whether the given dense submatrix is in default state. More...
|
|
template<typename MT , bool AF, bool SO> |
bool | blaze::isSame (const DenseSubmatrix< MT, AF, SO > &a, const DenseMatrix< MT, SO > &b) |
| Returns whether the given dense matrix and submatrix represent the same observable state. More...
|
|
template<typename MT , bool AF, bool SO> |
bool | blaze::isSame (const DenseMatrix< MT, SO > &a, const DenseSubmatrix< MT, AF, SO > &b) |
| Returns whether the given dense matrix and submatrix represent the same observable state. More...
|
|
template<typename MT , bool AF, bool SO> |
bool | blaze::isSame (const DenseSubmatrix< MT, AF, SO > &a, const DenseSubmatrix< MT, AF, SO > &b) |
| Returns whether the two given submatrices represent the same observable state. More...
|
|
template<typename MT , bool AF, bool SO>
bool blaze::isDefault |
( |
const DenseSubmatrix< MT, AF, SO > & |
dm | ) |
|
|
inline |
Returns whether the given dense submatrix is in default state.
- Parameters
-
dm | The dense submatrix to be tested for its default state. |
- Returns
- true in case the given submatrix is component-wise zero, false otherwise.
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:
template<typename MT , bool AF, bool SO>
bool blaze::isSame |
( |
const DenseSubmatrix< MT, AF, SO > & |
a, |
|
|
const DenseMatrix< MT, SO > & |
b |
|
) |
| |
|
inline |
Returns whether the given dense matrix and submatrix represent the same observable state.
- Parameters
-
a | The dense submatrix to be tested for its state. |
b | The dense matrix to be tested for its state. |
- Returns
- true in case the dense submatrix and matrix share a state, false otherwise.
This overload of the isSame function tests if the given submatrix refers to the full given dense matrix and by that represents the same observable state. In this case, the function returns true, otherwise it returns false.
template<typename MT , bool AF, bool SO>
bool blaze::isSame |
( |
const DenseMatrix< MT, SO > & |
a, |
|
|
const DenseSubmatrix< MT, AF, SO > & |
b |
|
) |
| |
|
inline |
Returns whether the given dense matrix and submatrix represent the same observable state.
- Parameters
-
a | The dense matrix to be tested for its state. |
b | The dense submatrix to be tested for its state. |
- Returns
- true in case the dense matrix and submatrix share a state, false otherwise.
This overload of the isSame function tests if the given submatrix refers to the full given dense matrix and by that represents the same observable state. In this case, the function returns true, otherwise it returns false.
template<typename MT , bool AF, bool SO>
bool blaze::isSame |
( |
const DenseSubmatrix< MT, AF, SO > & |
a, |
|
|
const DenseSubmatrix< MT, AF, SO > & |
b |
|
) |
| |
|
inline |
Returns whether the two given submatrices represent the same observable state.
- Parameters
-
a | The first dense submatrix to be tested for its state. |
b | The second dense submatrix to be tested for its state. |
- Returns
- true in case the two submatrices share a state, false otherwise.
This overload of the isSame function tests if the two given submatrices refer to exactly the same part of the same dense matrix. In case both submatrices represent the same observable state, the function returns true, otherwise it returns false.
template<typename MT , bool AF, bool SO>
void blaze::reset |
( |
DenseSubmatrix< MT, AF, SO > & |
dm, |
|
|
size_t |
i |
|
) |
| |
|
inline |
Reset the specified row/column of the given dense submatrix.
- Parameters
-
dm | The dense submatrix to be resetted. |
i | The index of the row/column to be resetted. |
- Returns
- void
This function resets the values in the specified row/column of the given dense submatrix to their default value. In case the given submatrix is a rowMajor matrix the function resets the values in row i, if it is a columnMajor matrix the function resets the values in column i. Note that the capacity of the row/column remains unchanged.