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