aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/Transpose.h
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-04-29 17:02:27 +0000
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-04-29 17:02:27 +0000
commita32923a4398c0b0b530b91aa013e0d2b5770658c (patch)
tree3662538bafedc0015698e0a430f54d25167f4910 /Eigen/src/Core/Transpose.h
parent1e41406c362788057b3adcd9a25b73f43e6e6492 (diff)
Fix (embarrassing) bug in blocked transpose.
Diffstat (limited to 'Eigen/src/Core/Transpose.h')
-rw-r--r--Eigen/src/Core/Transpose.h3
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());
}
}