mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-24 14:45:14 +08:00
Fix (embarrassing) bug in blocked transpose.
This commit is contained in:
parent
1e41406c36
commit
a32923a439
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user