1
- // SPDX-FileCopyrightText: 2017 - 2024 The Ginkgo authors
1
+ // SPDX-FileCopyrightText: 2017 - 2025 The Ginkgo authors
2
2
//
3
3
// SPDX-License-Identifier: BSD-3-Clause
4
4
@@ -138,7 +138,7 @@ TYPED_TEST(Jacobi, FindsNaturalBlocks)
138
138
using Mtx = typename TestFixture::Mtx;
139
139
using index_type = typename TestFixture::index_type;
140
140
using value_type = typename TestFixture::value_type;
141
- auto mtx = Mtx::create (this ->exec , gko::dim<2 >{4 }, 8 );
141
+ auto mtx = Mtx::create (this ->exec , gko::dim<2 >{4 , 4 }, 8 );
142
142
this ->template init_array <index_type>(mtx->get_row_ptrs (), {0 , 2 , 4 , 6 , 8 });
143
143
this ->template init_array <index_type>(mtx->get_col_idxs (),
144
144
{0 , 1 , 0 , 1 , 0 , 2 , 0 , 2 });
@@ -1119,15 +1119,15 @@ TYPED_TEST(Jacobi, ConvertsEmptyToDense)
1119
1119
TYPED_TEST (Jacobi, ScalarL1Diag)
1120
1120
{
1121
1121
/* example matrix:
1122
- 1 1
1123
- 2 2
1124
- -5 1
1125
- 1 -1
1122
+ 1 1 0 0
1123
+ 2 2 0 0
1124
+ -5 0 1 0
1125
+ 1 0 -1 0
1126
1126
*/
1127
1127
using Mtx = typename TestFixture::Mtx;
1128
1128
using index_type = typename TestFixture::index_type;
1129
1129
using value_type = typename TestFixture::value_type;
1130
- auto mtx = Mtx::create (this ->exec , gko::dim<2 >{4 }, 8 );
1130
+ auto mtx = Mtx::create (this ->exec , gko::dim<2 >{4 , 4 }, 8 );
1131
1131
this ->template init_array <index_type>(mtx->get_row_ptrs (), {0 , 2 , 4 , 6 , 8 });
1132
1132
this ->template init_array <index_type>(mtx->get_col_idxs (),
1133
1133
{0 , 1 , 0 , 1 , 0 , 2 , 0 , 2 });
@@ -1149,15 +1149,17 @@ TYPED_TEST(Jacobi, ScalarL1Diag)
1149
1149
TYPED_TEST (Jacobi, BlockL1)
1150
1150
{
1151
1151
/* example matrix:
1152
- 1 1
1153
- 2 2
1154
- -5 1
1155
- 1 -1 1
1152
+ 1 | 1
1153
+ ---+---+
1154
+ 2 | 2 |
1155
+ +---+--------
1156
+ -5 | 1
1157
+ 1 | -1 1
1156
1158
*/
1157
1159
using Mtx = typename TestFixture::Mtx;
1158
1160
using index_type = typename TestFixture::index_type;
1159
1161
using value_type = typename TestFixture::value_type;
1160
- auto mtx = Mtx::create (this ->exec , gko::dim<2 >{4 }, 9 );
1162
+ auto mtx = Mtx::create (this ->exec , gko::dim<2 >{4 , 4 }, 9 );
1161
1163
this ->template init_array <index_type>(mtx->get_row_ptrs (), {0 , 2 , 4 , 6 , 9 });
1162
1164
this ->template init_array <index_type>(mtx->get_col_idxs (),
1163
1165
{0 , 1 , 0 , 1 , 0 , 2 , 0 , 2 , 3 });
0 commit comments