cml::et::ExprTraits< T > Struct Template Reference
The expression traits class.
More...
#include <traits.h>
List of all members.
Detailed Description
template<typename T>
struct cml::et::ExprTraits< T >
The expression traits class.
The traits class is used to provide uniform access to expression objects, including scalars, when used in vector and matrix expressions. One especially useful property for scalars is that scalars are implicitly "promoted" to vectors or scalars as necessary via the ExprTraits's get() method. Without this functionality, a separate expression tree node would be needed to hold a scalar, which would adversely affect performance.
Definition at line 43 of file traits.h.
Member Typedef Documentation
Member Function Documentation
Size is always 1.
Definition at line 72 of file traits.h.
Matrix-like access, just returns the value.
Definition at line 63 of file traits.h.
Vector-like access, just returns the value.
Definition at line 60 of file traits.h.
Size is always 1.
Definition at line 69 of file traits.h.
Size is always 1.
Definition at line 66 of file traits.h.
The documentation for this struct was generated from the following file: