@@ -158,8 +158,8 @@ begin
158
158
MAW = tr (wr (MA))
159
159
@test AW * B ≈ MAW * B
160
160
# and for SparseMatrixCSCView - a view of all rows and unit range of cols
161
- vAW = tr (wr (view (A , :, 1 : n )))
162
- vMAW = tr (wr (view (MA , :, 1 : n )))
161
+ vAW = tr (wr (view ([A A] , :, (n + 1 ) : 2 n )))
162
+ vMAW = tr (wr (view ([MA MA] , :, (n + 1 ) : 2 n )))
163
163
@test vAW * B ≈ vMAW * B
164
164
end
165
165
a = sprand (rng, ComplexF64, n, n, 0.01 )
@@ -170,8 +170,8 @@ begin
170
170
MAW = tr (wr (ma))
171
171
@test AW * B ≈ MAW * B
172
172
# and for SparseMatrixCSCView - a view of all rows and unit range of cols
173
- vAW = tr (wr (view (a , :, 1 : n )))
174
- vMAW = tr (wr (view (ma, :, 1 : n )))
173
+ vAW = tr (wr (view ([a a] , :, (n + 1 ) : 2 n )))
174
+ vMAW = tr (wr (view (ma, :, (n + 1 ) : 2 n )))
175
175
@test vAW * B ≈ vMAW * B
176
176
end
177
177
A = A - Diagonal (diag (A)) + 2 I # avoid rounding errors by division
@@ -181,6 +181,10 @@ begin
181
181
AW = tr (wr (A))
182
182
MAW = tr (wr (MA))
183
183
@test AW \ B ≈ MAW \ B
184
+ # and for SparseMatrixCSCView - a view of all rows and unit range of cols
185
+ vAW = tr (wr (view ([a a], :, (n+ 1 ): 2 n)))
186
+ vMAW = tr (wr (view (ma, :, (n+ 1 ): 2 n)))
187
+ @test vAW \ B ≈ vMAW \ B
184
188
end
185
189
@testset " triangular singular exceptions" begin
186
190
A = LowerTriangular (sparse ([0 2.0 ;0 1 ]))
0 commit comments