Evaluators: Fixed bug caused by Diagonal dynamic index change.

This caused the evaluators unit test to fail.
This commit is contained in:
Jitse Niesen 2012-07-14 14:55:04 +01:00
parent 79214745c7
commit 4ae3e0a9b8

View File

@ -1148,7 +1148,7 @@ struct evaluator_impl<Diagonal<ArgType, DiagIndex> >
protected:
typename evaluator<ArgType>::nestedType m_argImpl;
const internal::variable_if_dynamic<Index, XprType::DiagIndex> m_index;
const internal::variable_if_dynamicindex<Index, XprType::DiagIndex> m_index;
private:
EIGEN_STRONG_INLINE Index rowOffset() const { return m_index.value() > 0 ? 0 : -m_index.value(); }