bug #1646: fix false aliasing detection for A.row(0) = A.col(0);

This changeset completely disable the detection for vectors for which are current mechanism cannot detect any positive aliasing anyway.
This commit is contained in:
Gael Guennebaud 2019-01-17 00:14:27 +01:00
parent 7401e2541d
commit 562985bac4

View File

@ -392,7 +392,7 @@ struct checkTransposeAliasing_impl<Derived, OtherDerived, false>
template<typename Dst, typename Src>
void check_for_aliasing(const Dst &dst, const Src &src)
{
if(src.size()>1)
if((!Dst::IsVectorAtCompileTime) && dst.rows()>1 && dst.cols()>1)
internal::checkTransposeAliasing_impl<Dst, Src>::run(dst, src);
}