diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-04-29 17:02:27 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-04-29 17:02:27 +0000 |
commit | a32923a4398c0b0b530b91aa013e0d2b5770658c (patch) | |
tree | 3662538bafedc0015698e0a430f54d25167f4910 /Eigen/src/Core/Transpose.h | |
parent | 1e41406c362788057b3adcd9a25b73f43e6e6492 (diff) |
Fix (embarrassing) bug in blocked transpose.
Diffstat (limited to 'Eigen/src/Core/Transpose.h')
-rw-r--r-- | Eigen/src/Core/Transpose.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h index 962082812..0b57a4353 100644 --- a/Eigen/src/Core/Transpose.h +++ b/Eigen/src/Core/Transpose.h @@ -292,7 +292,8 @@ void BlockedInPlaceTranspose(MatrixType& m) { } } for (Index row = row_start; row < m.rows(); ++row) { - m.matrix().row(row).swap(m.matrix().col(row).transpose()); + m.matrix().row(row).head(row).swap( + m.matrix().col(row).head(row).transpose()); } } |