#include <ArithmeticSequence.h>
Public Types | |
enum | { SizeAtCompileTime = internal::get_fixed_value<SizeType>::value, IncrAtCompileTime = internal::get_fixed_value<IncrType,DynamicIndex>::value } |
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 |
ArithmeticSequence< ReverseFirstType, SizeType, ReverseIncrType > | reverse () const |
Index | size () const |
const SizeType & | sizeObject () const |
Protected Types | |
typedef internal::aseq_reverse_first_type< FirstType, SizeType, IncrType >::type | ReverseFirstType |
typedef internal::aseq_negate< IncrType >::type | ReverseIncrType |
Protected Attributes | |
FirstType | m_first |
IncrType | m_incr |
SizeType | m_size |
This class represents an arithmetic progression defined by its first value , its size (aka length) n, and the increment (aka stride) that is equal to 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 82 of file ArithmeticSequence.h.
|
protected |
Definition at line 148 of file ArithmeticSequence.h.
|
protected |
Definition at line 147 of file ArithmeticSequence.h.
anonymous enum |
Enumerator | |
---|---|
SizeAtCompileTime | |
IncrAtCompileTime |
Definition at line 116 of file ArithmeticSequence.h.
|
inline |
Definition at line 113 of file ArithmeticSequence.h.
|
inline |
Definition at line 114 of file ArithmeticSequence.h.
|
inline |
Definition at line 125 of file ArithmeticSequence.h.
|
inline |
Definition at line 130 of file ArithmeticSequence.h.
|
inline |
Definition at line 132 of file ArithmeticSequence.h.
|
inline |
Definition at line 128 of file ArithmeticSequence.h.
|
inline |
Definition at line 151 of file ArithmeticSequence.h.
|
inline |
Definition at line 122 of file ArithmeticSequence.h.
|
inline |
Definition at line 131 of file ArithmeticSequence.h.
|
protected |
Definition at line 135 of file ArithmeticSequence.h.
|
protected |
Definition at line 137 of file ArithmeticSequence.h.
|
protected |
Definition at line 136 of file ArithmeticSequence.h.