Added support and tests: row and column blocks for sparse matrix

transpose.

Change-Id: Ife641b08a9e86826478521a405f21ba60667f0e8
This commit is contained in:
Richard Bowen
2014-04-01 16:22:49 -07:00
parent 5ecb1c3f1d
commit 3e60a998ac
2 changed files with 25 additions and 0 deletions
@@ -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;
}