Fix (embarrassing) bug in blocked transpose.

This commit is contained in:
Rasmus Munk Larsen 2020-04-29 17:02:27 +00:00
parent 1e41406c36
commit a32923a439

View File

@ -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());
}
}