aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/CoreEvaluators.h
diff options
context:
space:
mode:
Diffstat (limited to 'Eigen/src/Core/CoreEvaluators.h')
-rw-r--r--Eigen/src/Core/CoreEvaluators.h8
1 files changed, 2 insertions, 6 deletions
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<EvalToTemp<ArgType> >
typedef evaluator<PlainObject> Base;
EIGEN_DEVICE_FUNC explicit evaluator(const XprType& xpr)
- : m_result(xpr.rows(), xpr.cols())
+ : m_result(xpr.arg())
{
::new (static_cast<Base*>(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<Base*>(this)) Base(m_result);
- // TODO we should simply do m_result(xpr.arg());
- call_dense_assignment_loop(m_result, arg);
}
protected: