diff --git a/Eigen/src/Core/Transpose.h b/Eigen/src/Core/Transpose.h index a3f402cf3..962082812 100644 --- a/Eigen/src/Core/Transpose.h +++ b/Eigen/src/Core/Transpose.h @@ -292,7 +292,7 @@ void BlockedInPlaceTranspose(MatrixType& m) { } } for (Index row = row_start; row < m.rows(); ++row) { - m.matrix().row(row).swap(m.matrix().col(row)); + m.matrix().row(row).swap(m.matrix().col(row).transpose()); } }