From 1e41406c362788057b3adcd9a25b73f43e6e6492 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 29 Apr 2020 01:30:51 +0000 Subject: [PATCH] Add missing transpose in cleanup loop. Without it, we trip an assertion in debug mode. --- Eigen/src/Core/Transpose.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h index a3f402cf3..962082812 100644 --- a/Eigen/src/Core/Transpose.h +++ b/Eigen/src/Core/Transpose.h @@ -292,7 +292,7 @@ void BlockedInPlaceTranspose(MatrixType& m) { } } for (Index row = row_start; row < m.rows(); ++row) { - m.matrix().row(row).swap(m.matrix().col(row)); + m.matrix().row(row).swap(m.matrix().col(row).transpose()); } }