mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
remove MakeBase, use ei_dense_xpr_base instead
(yes, it was only used in dense xprs anyway)
This commit is contained in:
@@ -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) {}
|
||||
|
||||
Reference in New Issue
Block a user