diff options
author | Gael Guennebaud <g.gael@free.fr> | 2019-01-17 00:14:27 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2019-01-17 00:14:27 +0100 |
commit | 562985bac44a06c65f560e2628080d1743bfd77f (patch) | |
tree | dcb79c42e85997d88d2bed3f9c8cb11b89fd7e86 /Eigen/src/Core/Transpose.h | |
parent | 7401e2541deffd08c61b0426b2bcd21ffd481ac0 (diff) |
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.
Diffstat (limited to 'Eigen/src/Core/Transpose.h')
-rw-r--r-- | Eigen/src/Core/Transpose.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h index 6255a2f6d..91a9ab1b9 100644 --- a/Eigen/src/Core/Transpose.h +++ b/Eigen/src/Core/Transpose.h @@ -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); } |