mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +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) {
|
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…
x
Reference in New Issue
Block a user