@@ -373,18 +373,20 @@ end
373
373
f = Fun (PointSpace (1 : 10 ))
374
374
M = Multiplication (f, space (f))
375
375
T = TimesOperator ([M,M])
376
- S = view (T, 1 : 2 : 7 , 1 : 2 : 7 )
377
- B = BandedMatrix (S)
378
- for I in CartesianIndices (B)
379
- @test B[I] ≈ S[Tuple (I)... ]
376
+ for S in (view (T, 1 : 2 : 7 , 1 : 2 : 7 ), view (M, :, 1 : 3 ), view (M, 1 : 3 , :))
377
+ B = BandedMatrix (S)
378
+ for I in CartesianIndices (B)
379
+ @test B[I] ≈ S[Tuple (I)... ]
380
+ end
380
381
end
381
382
end
382
383
@testset " mul_coefficients" begin
383
384
sp1 = PointSpace (1 : 3 )
384
385
sp2 = PointSpace (2 : 4 )
385
386
S = ApproxFunBase. SpaceOperator (Conversion (sp1, sp1), sp2, sp2)
386
- @test mul_coefficients (view (S, 1 : 3 , 1 : 3 ), [1.0 , 1.0 , 1.0 ]) == [1.0 , 1.0 ]
387
- @test mul_coefficients (view (S, Block (1 ), Block (1 )), [1.0 , 1.0 , 1.0 ]) == [1.0 , 1.0 ]
387
+ v = [1.0 , 2.0 , 2.0 ]
388
+ @test mul_coefficients (view (S, axes (S)... ), v) == v
389
+ @test mul_coefficients (view (S, Block (1 ), Block (1 )), v) == v
388
390
end
389
391
end
390
392
@testset " conversion to a matrix" begin
0 commit comments