|
template<typename MT , bool SO, bool SF> |
void | blaze::reset (DenseColumn< MT, SO, SF > &column) |
| Resetting the given dense column. More...
|
|
template<typename MT , bool SO, bool SF> |
void | blaze::clear (DenseColumn< MT, SO, SF > &column) |
| Clearing the given dense column. More...
|
|
template<typename MT , bool SO, bool SF> |
bool | blaze::isDefault (const DenseColumn< MT, SO, SF > &column) |
| Returns whether the given dense column is in default state. More...
|
|
template<typename MT , bool SO, bool SF> |
bool | blaze::isSame (const DenseColumn< MT, SO, SF > &a, const DenseColumn< MT, SO, SF > &b) |
| Returns whether the two given dense columns represent the same observable state. More...
|
|
template<typename MT, bool SO = IsColumnMajorMatrix<MT>::value, bool SF = IsSymmetric<MT>::value>
Compilation switch for the non-const reference and iterator types.
The useConst compile time constant expression represents a compilation switch for the non-const reference and iterator types. In case the given dense matrix of type MT is const qualified, useConst will be set to 1 and the dense column will return references and iterators to const. Otherwise useConst will be set to 0 and the dense column will offer write access to the dense matrix elements both via the subscript operator and iterators.
template<typename MT , bool SO, bool SF>
bool blaze::isDefault |
( |
const DenseColumn< MT, SO, SF > & |
column | ) |
|
|
inline |
Returns whether the given dense column is in default state.
- Parameters
-
column | The 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:
template<typename MT , bool SO, bool SF>
Returns whether the two given dense columns represent the same observable state.
- Parameters
-
a | The first dense column to be tested for its state. |
b | The second dense column to be tested for its state. |
- Returns
- true in case the two columns share a state, false otherwise.
This overload of the isSame function tests if the two given dense columns refer to exactly the same range of the same dense matrix. In case both columns represent the same observable state, the function returns true, otherwise it returns false.