Fix test CompressedRowSparseMatrix.Transpose

Change-Id: I653b4619d518f767e57f04136117d7fe47f33ca1
This commit is contained in:
Dmitriy Korchemkin
2023-05-30 11:11:13 +03:00
parent d880df09f9
commit 085214ea74
@@ -253,9 +253,9 @@ TEST(CompressedRowSparseMatrix, CreateBlockDiagonalMatrix) {
TEST(CompressedRowSparseMatrix, Transpose) {
// 0 1 0 2 3 0
// 4 6 7 0 0 8
// 9 10 0 11 12 0
// 13 0 14 15 9 0
// 4 5 6 0 0 7
// 8 9 0 10 11 0
// 12 0 13 14 15 0
// 0 16 17 0 0 0
// Block structure:
@@ -303,7 +303,7 @@ TEST(CompressedRowSparseMatrix, Transpose) {
cols[16] = 2;
rows[5] = 17;
std::copy(values, values + 17, cols);
std::iota(values, values + 17, 1);
auto transpose = matrix.Transpose();