diff options
author | 2015-09-02 22:10:39 +0200 | |
---|---|---|
committer | 2015-09-02 22:10:39 +0200 | |
commit | aa768add0bd273763d06edb3ef6800ccb04284ef (patch) | |
tree | 5b39fa24734badb4b3bce8611d01c1633abd9f33 /Eigen/src/SparseCore | |
parent | 51455824ea607cbb57b207922662c9fad1cea9fd (diff) |
Since there is no reason for evaluators to be nested by reference, let's remove the evaluator<>::nestedType indirection.
Diffstat (limited to 'Eigen/src/SparseCore')
-rw-r--r-- | Eigen/src/SparseCore/SparseBlock.h | 2 | ||||
-rw-r--r-- | Eigen/src/SparseCore/SparseCwiseBinaryOp.h | 16 | ||||
-rw-r--r-- | Eigen/src/SparseCore/SparseCwiseUnaryOp.h | 4 | ||||
-rw-r--r-- | Eigen/src/SparseCore/SparseDenseProduct.h | 4 | ||||
-rw-r--r-- | Eigen/src/SparseCore/SparseDiagonalProduct.h | 6 | ||||
-rw-r--r-- | Eigen/src/SparseCore/SparseProduct.h | 2 | ||||
-rw-r--r-- | Eigen/src/SparseCore/SparseTranspose.h | 2 | ||||
-rw-r--r-- | Eigen/src/SparseCore/SparseView.h | 4 |
8 files changed, 18 insertions, 22 deletions
diff --git a/Eigen/src/SparseCore/SparseBlock.h b/Eigen/src/SparseCore/SparseBlock.h index 552bfca48..7df99eca4 100644 --- a/Eigen/src/SparseCore/SparseBlock.h +++ b/Eigen/src/SparseCore/SparseBlock.h @@ -456,7 +456,7 @@ struct unary_evaluator<Block<ArgType,BlockRows,BlockCols,InnerPanel>, IteratorBa protected:
typedef typename evaluator<ArgType>::InnerIterator EvalIterator;
- typename evaluator<ArgType>::nestedType m_argImpl;
+ evaluator<ArgType> m_argImpl;
const XprType &m_block;
};
diff --git a/Eigen/src/SparseCore/SparseCwiseBinaryOp.h b/Eigen/src/SparseCore/SparseCwiseBinaryOp.h index a4cc24e30..ae2995ced 100644 --- a/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +++ b/Eigen/src/SparseCore/SparseCwiseBinaryOp.h @@ -146,8 +146,8 @@ public: protected: const BinaryOp m_functor; - typename evaluator<Lhs>::nestedType m_lhsImpl; - typename evaluator<Rhs>::nestedType m_rhsImpl; + evaluator<Lhs> m_lhsImpl; + evaluator<Rhs> m_rhsImpl; }; // "sparse .* sparse" @@ -227,8 +227,8 @@ public: protected: const BinaryOp m_functor; - typename evaluator<Lhs>::nestedType m_lhsImpl; - typename evaluator<Rhs>::nestedType m_rhsImpl; + evaluator<Lhs> m_lhsImpl; + evaluator<Rhs> m_rhsImpl; }; // "dense .* sparse" @@ -295,8 +295,8 @@ public: protected: const BinaryOp m_functor; - typename evaluator<Lhs>::nestedType m_lhsImpl; - typename evaluator<Rhs>::nestedType m_rhsImpl; + evaluator<Lhs> m_lhsImpl; + evaluator<Rhs> m_rhsImpl; }; // "sparse .* dense" @@ -364,8 +364,8 @@ public: protected: const BinaryOp m_functor; - typename evaluator<Lhs>::nestedType m_lhsImpl; - typename evaluator<Rhs>::nestedType m_rhsImpl; + evaluator<Lhs> m_lhsImpl; + evaluator<Rhs> m_rhsImpl; }; } diff --git a/Eigen/src/SparseCore/SparseCwiseUnaryOp.h b/Eigen/src/SparseCore/SparseCwiseUnaryOp.h index d484be876..469bac36e 100644 --- a/Eigen/src/SparseCore/SparseCwiseUnaryOp.h +++ b/Eigen/src/SparseCore/SparseCwiseUnaryOp.h @@ -40,7 +40,7 @@ struct unary_evaluator<CwiseUnaryOp<UnaryOp,ArgType>, IteratorBased> // typedef typename evaluator<ArgType>::ReverseInnerIterator EvalReverseIterator; const UnaryOp m_functor; - typename evaluator<ArgType>::nestedType m_argImpl; + evaluator<ArgType> m_argImpl; }; template<typename UnaryOp, typename ArgType> @@ -115,7 +115,7 @@ struct unary_evaluator<CwiseUnaryView<ViewOp,ArgType>, IteratorBased> // typedef typename evaluator<ArgType>::ReverseInnerIterator EvalReverseIterator; const ViewOp m_functor; - typename evaluator<ArgType>::nestedType m_argImpl; + evaluator<ArgType> m_argImpl; }; template<typename ViewOp, typename ArgType> diff --git a/Eigen/src/SparseCore/SparseDenseProduct.h b/Eigen/src/SparseCore/SparseDenseProduct.h index 1a167445a..67b3c9c1b 100644 --- a/Eigen/src/SparseCore/SparseDenseProduct.h +++ b/Eigen/src/SparseCore/SparseDenseProduct.h @@ -272,8 +272,8 @@ public: protected: const LhsArg m_lhs; - typename evaluator<ActualLhs>::nestedType m_lhsXprImpl; - typename evaluator<ActualRhs>::nestedType m_rhsXprImpl; + evaluator<ActualLhs> m_lhsXprImpl; + evaluator<ActualRhs> m_rhsXprImpl; }; // sparse * dense outer product diff --git a/Eigen/src/SparseCore/SparseDiagonalProduct.h b/Eigen/src/SparseCore/SparseDiagonalProduct.h index 4dec7d7cc..b3b80e35a 100644 --- a/Eigen/src/SparseCore/SparseDiagonalProduct.h +++ b/Eigen/src/SparseCore/SparseDiagonalProduct.h @@ -39,7 +39,6 @@ struct product_evaluator<Product<Lhs, Rhs, DefaultProduct>, ProductTag, Diagonal : public sparse_diagonal_product_evaluator<Rhs, typename Lhs::DiagonalVectorType, Rhs::Flags&RowMajorBit?SDP_AsScalarProduct:SDP_AsCwiseProduct> { typedef Product<Lhs, Rhs, DefaultProduct> XprType; - typedef evaluator<XprType> nestedType; enum { CoeffReadCost = Dynamic, Flags = Rhs::Flags&RowMajorBit, Alignment = 0 }; // FIXME CoeffReadCost & Flags typedef sparse_diagonal_product_evaluator<Rhs, typename Lhs::DiagonalVectorType, Rhs::Flags&RowMajorBit?SDP_AsScalarProduct:SDP_AsCwiseProduct> Base; @@ -51,7 +50,6 @@ struct product_evaluator<Product<Lhs, Rhs, DefaultProduct>, ProductTag, SparseSh : public sparse_diagonal_product_evaluator<Lhs, Transpose<const typename Rhs::DiagonalVectorType>, Lhs::Flags&RowMajorBit?SDP_AsCwiseProduct:SDP_AsScalarProduct> { typedef Product<Lhs, Rhs, DefaultProduct> XprType; - typedef evaluator<XprType> nestedType; enum { CoeffReadCost = Dynamic, Flags = Lhs::Flags&RowMajorBit, Alignment = 0 }; // FIXME CoeffReadCost & Flags typedef sparse_diagonal_product_evaluator<Lhs, Transpose<const typename Rhs::DiagonalVectorType>, Lhs::Flags&RowMajorBit?SDP_AsCwiseProduct:SDP_AsScalarProduct> Base; @@ -84,8 +82,8 @@ public: {} protected: - typename evaluator<SparseXprType>::nestedType m_sparseXprImpl; - typename evaluator<DiagonalCoeffType>::nestedType m_diagCoeffImpl; + evaluator<SparseXprType> m_sparseXprImpl; + evaluator<DiagonalCoeffType> m_diagCoeffImpl; }; diff --git a/Eigen/src/SparseCore/SparseProduct.h b/Eigen/src/SparseCore/SparseProduct.h index c2131fd9d..da8919ecc 100644 --- a/Eigen/src/SparseCore/SparseProduct.h +++ b/Eigen/src/SparseCore/SparseProduct.h @@ -69,8 +69,6 @@ struct evaluator<SparseView<Product<Lhs, Rhs, Options> > > typedef typename XprType::PlainObject PlainObject; typedef evaluator<PlainObject> Base; - typedef evaluator nestedType; - explicit evaluator(const XprType& xpr) : m_result(xpr.rows(), xpr.cols()) { diff --git a/Eigen/src/SparseCore/SparseTranspose.h b/Eigen/src/SparseCore/SparseTranspose.h index d3fc7f102..c2d4ac549 100644 --- a/Eigen/src/SparseCore/SparseTranspose.h +++ b/Eigen/src/SparseCore/SparseTranspose.h @@ -92,7 +92,7 @@ struct unary_evaluator<Transpose<ArgType>, IteratorBased> explicit unary_evaluator(const XprType& op) :m_argImpl(op.nestedExpression()) {} protected: - typename evaluator<ArgType>::nestedType m_argImpl; + evaluator<ArgType> m_argImpl; }; } // end namespace internal diff --git a/Eigen/src/SparseCore/SparseView.h b/Eigen/src/SparseCore/SparseView.h index 0a87f01d9..dc054fbd1 100644 --- a/Eigen/src/SparseCore/SparseView.h +++ b/Eigen/src/SparseCore/SparseView.h @@ -114,7 +114,7 @@ struct unary_evaluator<SparseView<ArgType>, IteratorBased> explicit unary_evaluator(const XprType& xpr) : m_argImpl(xpr.nestedExpression()), m_view(xpr) {} protected: - typename evaluator<ArgType>::nestedType m_argImpl; + evaluator<ArgType> m_argImpl; const XprType &m_view; }; @@ -182,7 +182,7 @@ struct unary_evaluator<SparseView<ArgType>, IndexBased> explicit unary_evaluator(const XprType& xpr) : m_argImpl(xpr.nestedExpression()), m_view(xpr) {} protected: - typename evaluator<ArgType>::nestedType m_argImpl; + evaluator<ArgType> m_argImpl; const XprType &m_view; }; |