|
template<typename Type , size_t N, bool TF> |
void | blaze::reset (StaticVector< Type, N, TF > &v) |
| Resetting the given static vector. More...
|
|
template<typename Type , size_t N, bool TF> |
void | blaze::clear (StaticVector< Type, N, TF > &v) |
| Clearing the given static vector. More...
|
|
template<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> |
bool | blaze::isIntact (const StaticVector< Type, N, TF > &v) |
| 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) |
| Swapping the contents of two static vectors. More...
|
|
template<typename Type , size_t N, bool TF> |
void | blaze::move (StaticVector< Type, N, TF > &dst, StaticVector< Type, N, TF > &src) |
| Moving the contents of one static vector to another. 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<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:
template<typename Type , size_t N, bool TF>
bool blaze::isIntact |
( |
const StaticVector< Type, N, TF > & |
v | ) |
|
|
inline |
Returns whether the invariants of the given static vector are intact.
- Parameters
-
v | The static vector to be tested. |
- Returns
- true in case the given vector's invariants are intact, false otherwise.
This function checks whether the invariants of the static vector are intact, i.e. if its state is valid. In case the invariants are intact, the function returns true, else it will return false. The following example demonstrates the use of the isIntact() function: