mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Make sure we evaluate into temporaries matching evaluator storage order requirements
This commit is contained in:
@@ -695,9 +695,8 @@ void call_assignment(const Dst& dst, const Src& src)
|
||||
template<typename Dst, typename Src, typename Func>
|
||||
void call_assignment(Dst& dst, const Src& src, const Func& func, typename enable_if<evaluator_traits<Src>::AssumeAliasing==1, void*>::type = 0)
|
||||
{
|
||||
|
||||
#ifdef EIGEN_TEST_EVALUATORS
|
||||
typename Src::PlainObject tmp(src);
|
||||
typename plain_matrix_type<Src>::type tmp(src);
|
||||
#else
|
||||
typename Src::PlainObject tmp(src.rows(), src.cols());
|
||||
call_assignment_no_alias(tmp, src, internal::assign_op<typename Dst::Scalar>());
|
||||
|
||||
Reference in New Issue
Block a user