We are going to win! wohoo
Vector< Sz, K > Class Template Reference
Meta Vector class using expression templates. More...
#include <tvmet/meta/Vector.h>
Static Public Member Functions | |
template<class Dest , class Src , class Assign > | |
static void | assign (Dest &lhs, const Src &rhs, const Assign &assign_fn) |
assign an expression expr using the functional assign_fn. | |
template<class E > | |
static E::value_type | sum (const E &e) |
build the sum of the vector. | |
template<class E > | |
static NumericTraits< typename E::value_type >::sum_type | product (const E &e) |
build the product of the vector. | |
template<class Dest , class Src > | |
static PromoteTraits< typename Dest::value_type, typename Src::value_type >::value_type | dot (const Dest &lhs, const Src &rhs) |
build the dot product of the vector. | |
template<class E > | |
static bool | all_elements (const E &e) |
check for all elements | |
template<class E > | |
static bool | any_elements (const E &e) |
check for any elements |
Detailed Description
template<std::size_t Sz, std::size_t K = 0>
class tvmet::meta::Vector< Sz, K >
Meta Vector class using expression templates.
Vector.h "tvmet/meta/Vector.h".
Meta Vector Specialized for recursion
Definition at line 44 of file meta/Vector.h.
Member Function Documentation
static bool all_elements | ( | const E & | e ) | [static] |
check for all elements
Definition at line 98 of file meta/Vector.h.
static bool any_elements | ( | const E & | e ) | [static] |
check for any elements
Definition at line 107 of file meta/Vector.h.
static void assign | ( | Dest & | lhs, |
const Src & | rhs, | ||
const Assign & | assign_fn | ||
) | [static] |
assign an expression expr using the functional assign_fn.
Definition at line 59 of file meta/Vector.h.
static PromoteTraits< typename Dest::value_type, typename Src::value_type >::value_type dot | ( | const Dest & | lhs, |
const Src & | rhs | ||
) | [static] |
build the dot product of the vector.
Definition at line 89 of file meta/Vector.h.
static NumericTraits< typename E::value_type >::sum_type product | ( | const E & | e ) | [static] |
build the product of the vector.
Definition at line 78 of file meta/Vector.h.
static E::value_type sum | ( | const E & | e ) | [static] |
build the sum of the vector.
Definition at line 68 of file meta/Vector.h.
Generated on Tue Jul 12 2022 19:50:04 by 1.7.2