mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
Added support and tests: row and column blocks for sparse matrix
transpose. Change-Id: Ife641b08a9e86826478521a405f21ba60667f0e8
This commit is contained in:
@@ -377,6 +377,9 @@ CompressedRowSparseMatrix* CompressedRowSparseMatrix::Transpose() const {
|
||||
}
|
||||
transpose_rows[0] = 0;
|
||||
|
||||
*(transpose->mutable_row_blocks()) = col_blocks_;
|
||||
*(transpose->mutable_col_blocks()) = row_blocks_;
|
||||
|
||||
return transpose;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user