![]() |
|
#include <ArithmeticSequence.h>
Public Types | |
enum | { IncrAtCompileTime = internal::get_fixed_value<IncrType, DynamicIndex>::value } |
Public Member Functions | |
constexpr | ArithmeticSequence ()=default |
constexpr | ArithmeticSequence (FirstType first, SizeType size) |
constexpr | ArithmeticSequence (FirstType first, SizeType size, IncrType incr) |
constexpr Index | size () const |
constexpr Index | first () const |
constexpr Index | operator[] (Index i) const |
constexpr const FirstType & | firstObject () const |
constexpr const SizeType & | sizeObject () const |
constexpr const IncrType & | incrObject () const |
constexpr auto | reverse () const -> decltype(Eigen::seqN(m_first+(m_size+fix<-1 >()) *m_incr, m_size, -m_incr)) |
Protected Attributes | |
FirstType | m_first |
SizeType | m_size |
IncrType | m_incr |
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) |
anonymous enum |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
References Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::m_first.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
References i, Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::m_first, and Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::m_incr.
|
inlineconstexpr |
References Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::m_first, Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::m_incr, Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::m_size, and Eigen::seqN().
|
inlineconstexpr |
References Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::m_size.
|
inlineconstexpr |
|
protected |
Referenced by Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::first(), Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::firstObject(), Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::operator[](), and Eigen::ArithmeticSequence< FirstType, SizeType, IncrType >::reverse().
|
protected |
|
protected |