aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Transpose.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2019-01-17 00:14:27 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2019-01-17 00:14:27 +0100
commit562985bac44a06c65f560e2628080d1743bfd77f (patch)
treedcb79c42e85997d88d2bed3f9c8cb11b89fd7e86 /Eigen/src/Core/Transpose.h
parent7401e2541deffd08c61b0426b2bcd21ffd481ac0 (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.h2
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);
}