|
template<typename Type , size_t N, bool TF> |
constexpr void | blaze::reset (StaticVector< Type, N, TF > &v) |
| Resetting the given static vector. More...
|
|
template<typename Type , size_t N, bool TF> |
constexpr void | blaze::clear (StaticVector< Type, N, TF > &v) |
| Clearing the given static vector. More...
|
|
template<bool RF, typename Type , size_t N, bool TF> |
bool | blaze::isDefault (const StaticVector< Type, N, TF > &v) |
| Returns whether the given static vector is in default state. More...
|
|
template<typename Type , size_t N, bool TF> |
constexpr bool | blaze::isIntact (const StaticVector< Type, N, TF > &v) noexcept |
| Returns whether the invariants of the given static vector are intact. More...
|
|
template<typename Type , size_t N, bool TF> |
void | blaze::swap (StaticVector< Type, N, TF > &a, StaticVector< Type, N, TF > &b) noexcept |
| Swapping the contents of two static vectors. More...
|
|
template<size_t I, typename Type , size_t N, bool TF> |
constexpr Type & | blaze::get (StaticVector< Type, N, TF > &v) noexcept |
| Tuple-like index-based access the contents of a static vector. More...
|
|
template<size_t I, typename Type , size_t N, bool TF> |
constexpr Type && | blaze::get (StaticVector< Type, N, TF > &&v) noexcept |
| Tuple-like index-based access the contents of a temporary static vector. More...
|
|
template<size_t I, typename Type , size_t N, bool TF> |
constexpr const Type & | blaze::get (const StaticVector< Type, N, TF > &v) noexcept |
| Tuple-like index-based access the contents of a constant static vector. More...
|
|
template<size_t I, typename Type , size_t N, bool TF> |
constexpr const Type && | blaze::get (const StaticVector< Type, N, TF > &&v) noexcept |
| Tuple-like index-based access the contents of a constant temporary static vector. More...
|
|
template<typename Type , bool TF> |
const StaticVector< Type, 2UL, TF > | blaze::perp (const StaticVector< Type, 2UL, TF > &v) |
| Unary perp dot product operator for the calculation of a perpendicular vector ( ). More...
|
|
template<typename Type , bool TF> |
const StaticVector< Type, 3UL, TF > | blaze::perp (const StaticVector< Type, 3UL, TF > &v) |
| Creates a perpendicular vector b which satisfies . More...
|
|
template<bool RF, typename Type , size_t N, bool TF>
bool blaze::isDefault |
( |
const StaticVector< Type, N, TF > & |
v | ) |
|
|
inline |
Returns whether the given static vector is in default state.
- Parameters
-
v | The vector to be tested for its default state. |
- Returns
- true in case the given vector is component-wise zero, false otherwise.
This function checks whether the static vector is in default state. For instance, in case the static vector is instantiated for a built-in integral or floating point data type, the function returns true in case all vector elements are 0 and false in case any vector element is not 0. Following example demonstrates the use of the isDefault function:
Optionally, it is possible to switch between strict semantics (blaze::strict) and relaxed semantics (blaze::relaxed):
if( isDefault<relaxed>( a ) ) { ... }