11#ifndef EIGEN_INDEXED_VIEW_HELPER_H
12#define EIGEN_INDEXED_VIEW_HELPER_H
52#ifdef EIGEN_PARSED_BY_DOXYGEN
53static const auto lastp1 = last+
fix<1>;
66FixedInt<N> eval_expr_given_size(FixedInt<N> x,
Index ) {
return x; }
68template<
typename Derived>
69Index eval_expr_given_size(
const symbolic::BaseExpr<Derived> &x,
Index size)
71 return x.derived().eval(last=size-1);
81EIGEN_CONSTEXPR
Index first(
const T& x) EIGEN_NOEXCEPT {
return x.first(); }
85template<
typename T,
int XprSize,
typename EnableIf=
void>
90template<
typename T,
typename Q>
91const T& makeIndexedViewCompatible(
const T& x,
Index , Q) {
return x; }
102 Index operator[](
Index)
const {
return m_value; }
103 static EIGEN_CONSTEXPR
Index size() EIGEN_NOEXCEPT {
return 1; }
104 Index first()
const EIGEN_NOEXCEPT {
return m_value; }
113template<
typename T,
int XprSize>
121template<
typename T,
int XprSize>
129makeIndexedViewCompatible(
const T&
id,
Index size, SpecializedType) {
130 return eval_expr_given_size(
id,size);
142 enum { SizeAtCompileTime =
XprSize };
144 EIGEN_CONSTEXPR
Index operator[](
Index i)
const EIGEN_NOEXCEPT {
return i; }
145 EIGEN_CONSTEXPR
Index size()
const EIGEN_NOEXCEPT {
return m_size.value(); }
146 EIGEN_CONSTEXPR
Index first()
const EIGEN_NOEXCEPT {
return 0; }
155template<
typename XprSizeType>
174namespace placeholders {
179 EIGEN_DEPRECATED
static const all_t all = Eigen::all;
180 EIGEN_DEPRECATED
static const last_t last = Eigen::last;
181 EIGEN_DEPRECATED
static const end_t end = Eigen::lastp1;
Base class for all dense matrices, vectors, and expressions.
Definition MatrixBase.h:50
Definition SymbolicIndex.h:252
Expression of a symbol uniquely identified by the template parameter type tag.
Definition SymbolicIndex.h:214
Definition SymbolicIndex.h:52
Namespace containing all symbols from the Eigen library.
Definition LDLT.h:16
const int UndefinedIncr
This value means that the increment to go from one value to another in a sequence is not constant for...
Definition Constants.h:31
EIGEN_DEFAULT_DENSE_INDEX_TYPE Index
The Index type as used for the API.
Definition Meta.h:74
Definition IndexedViewHelper.h:141
Definition IndexedViewHelper.h:86
Definition IndexedViewHelper.h:97
Definition IndexedViewHelper.h:137
Definition IndexedViewHelper.h:75
Definition IndexedViewHelper.h:17