mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Enable direct access for IndexedView.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
90087b990a
commit
b56e30841c
@@ -226,6 +226,11 @@ struct get_compile_time_incr<ArithmeticSequence<FirstType, SizeType, IncrType> >
|
||||
enum { value = get_fixed_value<IncrType, DynamicIndex>::value };
|
||||
};
|
||||
|
||||
template <typename FirstType, typename SizeType, typename IncrType>
|
||||
constexpr Index get_runtime_incr(const ArithmeticSequence<FirstType, SizeType, IncrType>& x) EIGEN_NOEXCEPT {
|
||||
return static_cast<Index>(x.incrObject());
|
||||
};
|
||||
|
||||
} // end namespace internal
|
||||
|
||||
/** \namespace Eigen::indexing
|
||||
|
||||
Reference in New Issue
Block a user