|
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...
|
|
template<typename VT , bool AF, bool TF> |
bool | blaze::isSame (const DenseSubvector< VT, AF, TF > &a, const DenseVector< VT, TF > &b) |
| Returns whether the given dense vector and subvector represent the same observable state. More...
|
|
template<typename VT , bool AF, bool TF> |
bool | blaze::isSame (const DenseVector< VT, TF > &a, const DenseSubvector< VT, AF, TF > &b) |
| Returns whether the given dense vector and subvector represent the same observable state. More...
|
|
template<typename VT , bool AF, bool TF> |
bool | blaze::isSame (const DenseSubvector< VT, AF, TF > &a, const DenseSubvector< VT, AF, TF > &b) |
| Returns whether the two given subvectors represent the same observable state. More...
|
|
template<typename VT, bool AF = unaligned, bool TF = IsRowVector<VT>::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 vector of type VT is const qualified, useConst will be set to 1 and the subvector will return references and iterators to const. Otherwise useConst will be set to 0 and the subvector will offer write access to the dense vector elements both via the subscript operator and iterators.
template<typename VT , bool AF, bool TF>
Returns whether the given dense subvector is in default state.
- Parameters
-
dv | The 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:
template<typename VT , bool AF, bool TF>
Returns whether the given dense vector and subvector represent the same observable state.
- Parameters
-
a | The dense subvector to be tested for its state. |
b | The dense vector to be tested for its state. |
- Returns
- true in case the dense subvector and vector share a state, false otherwise.
This overload of the isSame function tests if the given subvector refers to the entire range of the given dense vector and by that represents the same observable state. In this case, the function returns true, otherwise it returns false.
template<typename VT , bool AF, bool TF>
Returns whether the given dense vector and subvector represent the same observable state.
- Parameters
-
a | The dense vector to be tested for its state. |
b | The dense subvector to be tested for its state. |
- Returns
- true in case the dense vector and subvector share a state, false otherwise.
This overload of the isSame function tests if the given subvector refers to the entire range of the given dense vector and by that represents the same observable state. In this case, the function returns true, otherwise it returns false.
template<typename VT , bool AF, bool TF>
Returns whether the two given subvectors represent the same observable state.
- Parameters
-
a | The first dense subvector to be tested for its state. |
b | The second dense subvector to be tested for its state. |
- Returns
- true in case the two subvectors share a state, false otherwise.
This overload of the isSame function tests if the two given subvectors refer to exactly the same range of the same dense vector. In case both subvectors represent the same observable state, the function returns true, otherwise it returns false.