lin
Public Types | Static Public Attributes | List of all members
lin::internal::vector_traits< C > Struct Template Reference

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...
 

Detailed Description

template<class C>
struct lin::internal::vector_traits< C >

Collection of compile time information describing a tensor type which is deemed a vector.

Template Parameters
CVector type.

More details to come.

See also
internal::is_vector
internal::traits.

Member Typedef Documentation

template<class C >
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().

Member Data Documentation

template<class C >
constexpr size_t lin::internal::vector_traits< C >::length = _vector_dims<C>::length
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.

template<class C >
constexpr size_t lin::internal::vector_traits< C >::max_length = _vector_dims<C>::max_length
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.


The documentation for this struct was generated from the following file: