From f6f6f50272164a523126f5371ac51a2c8f5bae8e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 8 Oct 2015 16:34:33 +0200 Subject: Clean evaluator --- Eigen/src/Core/CoreEvaluators.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Eigen/src/Core/CoreEvaluators.h') diff --git a/Eigen/src/Core/CoreEvaluators.h b/Eigen/src/Core/CoreEvaluators.h index b96ef99fa..74908bd45 100644 --- a/Eigen/src/Core/CoreEvaluators.h +++ b/Eigen/src/Core/CoreEvaluators.h @@ -1337,20 +1337,16 @@ struct evaluator > typedef evaluator Base; EIGEN_DEVICE_FUNC explicit evaluator(const XprType& xpr) - : m_result(xpr.rows(), xpr.cols()) + : m_result(xpr.arg()) { ::new (static_cast(this)) Base(m_result); - // TODO we should simply do m_result(xpr.arg()); - call_dense_assignment_loop(m_result, xpr.arg()); } // This constructor is used when nesting an EvalTo evaluator in another evaluator EIGEN_DEVICE_FUNC evaluator(const ArgType& arg) - : m_result(arg.rows(), arg.cols()) + : m_result(arg) { ::new (static_cast(this)) Base(m_result); - // TODO we should simply do m_result(xpr.arg()); - call_dense_assignment_loop(m_result, arg); } protected: -- cgit v1.2.3