Public Types | |
| enum | { SizeAtCompileTime , IncrAtCompileTime } |
Public Member Functions | |
| ArithmeticSequence (FirstType first, SizeType size) | |
| ArithmeticSequence (FirstType first, SizeType size, IncrType incr) | |
| Index | first () const |
| const FirstType & | firstObject () const |
| const IncrType & | incrObject () const |
| Index | operator[] (Index i) const |
| auto | reverse () const -> decltype(Eigen::seqN(m_first+(m_size+fix<-1 >()) *m_incr, m_size,-m_incr)) |
| Index | size () const |
| const SizeType & | sizeObject () const |
Protected Attributes | |
| FirstType | m_first |
| IncrType | m_incr |
| SizeType | m_size |
This class represents an arithmetic progression \( a_0, a_1, a_2, ..., a_{n-1}\) defined by its first value \( a_0 \), its size (aka length) n, and the increment (aka stride) that is equal to \( a_{i+1}-a_{i}\) for any i.
It is internally used as the return type of the Eigen::seq and Eigen::seqN functions, and as the input arguments of DenseBase::operator()(const RowIndices&, const ColIndices&), and most of the time this is the only way it is used.
| FirstType | type of the first element, usually an Index, but internally it can be a symbolic expression |
| SizeType | type representing the size of the sequence, usually an Index or a compile time integral constant. Internally, it can also be a symbolic expression |
| IncrType | type of the increment, can be a runtime Index, or a compile time integral constant (default is compile-time 1) |
Definition at line 59 of file ArithmeticSequence.h.
| anonymous enum |
|
inline |
Definition at line 62 of file ArithmeticSequence.h.
|
inline |
Definition at line 63 of file ArithmeticSequence.h.
|
inline |
Definition at line 74 of file ArithmeticSequence.h.
|
inline |
Definition at line 79 of file ArithmeticSequence.h.
|
inline |
Definition at line 81 of file ArithmeticSequence.h.
|
inline |
Definition at line 77 of file ArithmeticSequence.h.
|
inline |
Definition at line 89 of file ArithmeticSequence.h.
|
inline |
Definition at line 71 of file ArithmeticSequence.h.
|
inline |
Definition at line 80 of file ArithmeticSequence.h.
|
protected |
Definition at line 84 of file ArithmeticSequence.h.
|
protected |
Definition at line 86 of file ArithmeticSequence.h.
|
protected |
Definition at line 85 of file ArithmeticSequence.h.