mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-31 17:22:07 +08:00
Clean evaluator<EvalToTemp>
This commit is contained in:
parent
67bfba07fd
commit
f6f6f50272
@ -1337,20 +1337,16 @@ struct evaluator<EvalToTemp<ArgType> >
|
|||||||
typedef evaluator<PlainObject> Base;
|
typedef evaluator<PlainObject> Base;
|
||||||
|
|
||||||
EIGEN_DEVICE_FUNC explicit evaluator(const XprType& xpr)
|
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);
|
::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
|
// This constructor is used when nesting an EvalTo evaluator in another evaluator
|
||||||
EIGEN_DEVICE_FUNC evaluator(const ArgType& arg)
|
EIGEN_DEVICE_FUNC evaluator(const ArgType& arg)
|
||||||
: m_result(arg.rows(), arg.cols())
|
: m_result(arg)
|
||||||
{
|
{
|
||||||
::new (static_cast<Base*>(this)) Base(m_result);
|
::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:
|
protected:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user