lin
|
Collection of compile time information describing a tensor type which is deemed a vector. More...
#include <lin/core/traits/vector.hpp>
Public Types | |
typedef _elem_t< C > | elem_t |
Vector's element type. | |
typedef _eval_t< C > | eval_t |
Vector's evaluation type. More... | |
Static Public Attributes | |
static constexpr size_t | length = _vector_dims<C>::length |
Vector length. More... | |
static constexpr size_t | max_length = _vector_dims<C>::max_length |
Max vector length. More... | |
Collection of compile time information describing a tensor type which is deemed a vector.
C | Vector type. |
More details to come.
typedef _eval_t<C> lin::internal::vector_traits< C >::eval_t |
Vector's evaluation type.
This is the type returned when forcing the generation of a temporary with a call to Stream::eval().
|
static |
Vector length.
Defines the number of elements a given vector type has. If nonzero, the element count is fixed. If zero, the number of elements is allowed to vary.
|
static |
Max vector length.
Defines the maximum number of elements a given vector type can have. This should be equal to the length unless the length is nonzero.