diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-04-23 12:16:30 -0400 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2010-04-23 12:16:30 -0400 |
commit | e3e34b5920c9d522e53e4800218b53633df71f86 (patch) | |
tree | 00cfe0ab4f7871ae096c0440f6c416e9d7f05a88 /Eigen/src/Core/Diagonal.h | |
parent | a16ba80bfa492f68cc699979ccda63519d782421 (diff) |
remove MakeBase, use ei_dense_xpr_base instead
(yes, it was only used in dense xprs anyway)
Diffstat (limited to 'Eigen/src/Core/Diagonal.h')
-rw-r--r-- | Eigen/src/Core/Diagonal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Diagonal.h b/Eigen/src/Core/Diagonal.h index bb1f08837..287ff3f8e 100644 --- a/Eigen/src/Core/Diagonal.h +++ b/Eigen/src/Core/Diagonal.h @@ -64,7 +64,7 @@ struct ei_traits<Diagonal<MatrixType,Index> > }; template<typename MatrixType, int Index> class Diagonal - : public MatrixType::template MakeBase< Diagonal<MatrixType,Index> >::Type + : public ei_dense_xpr_base< Diagonal<MatrixType,Index> >::type { // some compilers may fail to optimize std::max etc in case of compile-time constants... EIGEN_STRONG_INLINE int absIndex() const { return m_index.value()>0 ? m_index.value() : -m_index.value(); } @@ -73,7 +73,7 @@ template<typename MatrixType, int Index> class Diagonal public: - typedef typename MatrixType::template MakeBase<Diagonal>::Type Base; + typedef typename ei_dense_xpr_base<Diagonal>::type Base; EIGEN_DENSE_PUBLIC_INTERFACE(Diagonal) inline Diagonal(const MatrixType& matrix, int index = Index) : m_matrix(matrix), m_index(index) {} |