![]() |
Eigen
3.4.90 (git rev 9589cc4e7fd8e4538bedef80dd36c7738977a8be)
|
Functions | |
template<int N> | |
static const auto | fix () |
template<typename SizeType, typename IncrType> | |
auto | lastN (SizeType size, IncrType incr) -> decltype(seqN(Eigen::placeholders::last -(size - fix< 1 >()) *incr, size, incr)) |
template<typename FirstType, typename LastType, typename IncrType> | |
auto | seq (FirstType f, LastType l, IncrType incr) |
template<typename FirstType, typename SizeType, typename IncrType> | |
ArithmeticSequence< typename internal::cleanup_index_type< FirstType >::type, typename internal::cleanup_index_type< SizeType >::type, typename internal::cleanup_seq_incr< IncrType >::type > | seqN (FirstType first, SizeType size, IncrType incr) |
Variables | |
static constexpr Eigen::internal::all_t | all |
static constexpr const last_t | last |
static constexpr auto | lastp1 |
The sole purpose of this namespace is to be able to import all functions and symbols that are expected to be used within operator() for indexing and slicing. If you already imported the whole Eigen namespace:
then you are already all set. Otherwise, if you don't want/cannot import the whole Eigen namespace, the following line:
is equivalent to:
|
static |
This identifier permits to construct an object embedding a compile-time integer N
.
N | the compile-time integer value |
It is typically used in conjunction with the Eigen::seq and Eigen::seqN functions to pass compile-time values to them:
See also the function fix(int) to pass both a compile-time and runtime value.
In c++14, it is implemented as:
where internal::FixedInt<N> is an internal template class similar to std::integral_constant
<int,N>
Here, fix<N>
is thus an object of type internal::FixedInt<N>
.
auto Eigen::placeholders::lastN | ( | SizeType | size, |
IncrType | incr ) -> decltype(seqN(Eigen::placeholders::last - (size - fix<1>()) * incr, size, incr)) |
[c++11]
It is a shortcut for:
auto Eigen::seq | ( | FirstType | f, |
LastType | l, | ||
IncrType | incr ) |
It is essentially an alias to:
ArithmeticSequence< typename internal::cleanup_index_type< FirstType >::type, typename internal::cleanup_index_type< SizeType >::type, typename internal::cleanup_seq_incr< IncrType >::type > Eigen::seqN | ( | FirstType | first, |
SizeType | size, | ||
IncrType | incr ) |
|
staticconstexpr |
Can be used as a parameter to DenseBase::operator()(const RowIndices&, const ColIndices&) to index all rows or columns
|
staticconstexpr |
Can be used as a parameter to Eigen::seq and Eigen::seqN functions to symbolically reference the last element/row/columns of the underlying vector or matrix once passed to DenseBase::operator()(const RowIndices&, const ColIndices&).
This symbolic placeholder supports standard arithmetic operations.
A typical usage example would be:
|
staticconstexpr |
Can be used as a parameter to Eigen::seq and Eigen::seqN functions to symbolically reference the last+1 element/row/columns of the underlying vector or matrix once passed to DenseBase::operator()(const RowIndices&, const ColIndices&).
This symbolic placeholder supports standard arithmetic operations. It is essentially an alias to last+fix<1>.