Eigen::type2index< n > Struct Template Reference

#include <TensorIndexList.h>

Public Member Functions

constexpr EIGEN_DEVICE_FUNC operator Index () const
 
EIGEN_DEVICE_FUNC void set (Index val)
 

Static Public Attributes

static constexpr Index value = n
 

Member Function Documentation

◆ operator Index()

template<Index n>
constexpr EIGEN_DEVICE_FUNC Eigen::type2index< n >::operator Index ( ) const
inlineconstexpr
41 { return n; }
const unsigned n
Definition: CG3DPackingUnitTest.cpp:11

References n.

◆ set()

template<Index n>
EIGEN_DEVICE_FUNC void Eigen::type2index< n >::set ( Index  val)
inline
42 { eigen_assert(val == n); }
#define eigen_assert(x)
Definition: Macros.h:910
val
Definition: calibrate.py:119

References eigen_assert, n, and calibrate::val.

Referenced by test_mixed_index_list().

Member Data Documentation

◆ value

template<Index n>
constexpr Index Eigen::type2index< n >::value = n
staticconstexpr

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