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/Core/ProductEvaluators.h | |
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/Core/ProductEvaluators.h')
-rwxr-xr-x | Eigen/src/Core/ProductEvaluators.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Eigen/src/Core/ProductEvaluators.h b/Eigen/src/Core/ProductEvaluators.h index 2dcd02cbd..d704eedb9 100755 --- a/Eigen/src/Core/ProductEvaluators.h +++ b/Eigen/src/Core/ProductEvaluators.h @@ -32,8 +32,6 @@ struct evaluator<Product<Lhs, Rhs, Options> > typedef Product<Lhs, Rhs, Options> XprType; typedef product_evaluator<XprType> Base; - typedef evaluator nestedType; - EIGEN_DEVICE_FUNC explicit evaluator(const XprType& xpr) : Base(xpr) {} }; @@ -46,8 +44,6 @@ struct evaluator<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const Produ typedef CwiseUnaryOp<internal::scalar_multiple_op<Scalar>, const Product<Lhs, Rhs, DefaultProduct> > XprType; typedef evaluator<Product<CwiseUnaryOp<internal::scalar_multiple_op<Scalar>,const Lhs>, Rhs, DefaultProduct> > Base; - typedef evaluator nestedType; - EIGEN_DEVICE_FUNC explicit evaluator(const XprType& xpr) : Base(xpr.functor().m_other * xpr.nestedExpression().lhs() * xpr.nestedExpression().rhs()) {} @@ -61,8 +57,6 @@ struct evaluator<Diagonal<const Product<Lhs, Rhs, DefaultProduct>, DiagIndex> > typedef Diagonal<const Product<Lhs, Rhs, DefaultProduct>, DiagIndex> XprType; typedef evaluator<Diagonal<const Product<Lhs, Rhs, LazyProduct>, DiagIndex> > Base; - typedef evaluator nestedType; - EIGEN_DEVICE_FUNC explicit evaluator(const XprType& xpr) : Base(Diagonal<const Product<Lhs, Rhs, LazyProduct>, DiagIndex>( Product<Lhs, Rhs, LazyProduct>(xpr.nestedExpression().lhs(), xpr.nestedExpression().rhs()), @@ -735,8 +729,8 @@ protected: m_diagImpl.template packet<DiagonalPacketLoadMode,PacketType>(id)); } - typename evaluator<DiagonalType>::nestedType m_diagImpl; - typename evaluator<MatrixType>::nestedType m_matImpl; + evaluator<DiagonalType> m_diagImpl; + evaluator<MatrixType> m_matImpl; }; // diagonal * dense |