From 502f7179801a9b6ae5f6d6df60e72d5064702925 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 16 Jan 2019 14:33:45 +0100 Subject: bug #1646: disable aliasing detection for empty and 1x1 expression --- Eigen/src/Core/Transpose.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Eigen/src/Core/Transpose.h') diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h index d7c204579..6255a2f6d 100644 --- a/Eigen/src/Core/Transpose.h +++ b/Eigen/src/Core/Transpose.h @@ -392,7 +392,8 @@ struct checkTransposeAliasing_impl template void check_for_aliasing(const Dst &dst, const Src &src) { - internal::checkTransposeAliasing_impl::run(dst, src); + if(src.size()>1) + internal::checkTransposeAliasing_impl::run(dst, src); } } // end namespace internal -- cgit v1.2.3