@@ -12,19 +12,19 @@ using LinearMaps: FiveArg, LinearMapTuple, LinearMapVector, FunctionMap
1212 mul! (u, CS!, v)
1313 @test (@allocated mul! (u, CS!, v)) == 0
1414 n = 10
15- alloc = @allocated similar (v)
15+ alloc = ( @allocations similar (v)) + 1
1616 Loop = @inferred CS + CS + CS
1717 @test Loop * v ≈ 3 cumsum (v)
1818 @test (CS + CR + CS) * v ≈ 3 cumsum (v)
19- @test (@allocated Loop * v) <= 3 alloc
19+ @test (@allocations Loop * v) <= 3 alloc
2020 Loop = @inferred CS + CS; Loop * v
21- @test (@allocated Loop * v) <= 2 alloc
21+ @test (@allocations Loop * v) <= 2 alloc
2222 Lmix = @inferred CS + CS + CS!; Lmix * v
23- @test (@allocated Lmix * v) <= 3 alloc
23+ @test (@allocations Lmix * v) <= 3 alloc
2424 Lmix = @inferred CS + CS + CS!; Lmix * v
25- @test (@allocated Lmix * v) <= 3 alloc
25+ @test (@allocations Lmix * v) <= 3 alloc
2626 Lmix = @inferred CS! + (CS + CS); Lmix * v
27- @test (@allocated Lmix * v) <= 3 alloc
27+ @test (@allocations Lmix * v) <= 3 alloc
2828 L = @inferred sum (ntuple (_ -> CS!, n))
2929 @test (@inferred sum (L. maps:: LinearMapTuple )) == L
3030 Lv = @inferred LinearMaps. LinearCombination {ComplexF64} (fill (CS!, n))
@@ -60,11 +60,11 @@ using LinearMaps: FiveArg, LinearMapTuple, LinearMapVector, FunctionMap
6060 @test occursin (" 10×10 $LinearMaps .LinearCombination{$(eltype (L)) }" , sprint ((t, s) -> show (t, " text/plain" , s), L+ CS!))
6161 @test mul! (u, L, v) ≈ n * cumsum (v)
6262 @test mul! (u, Lv, v) ≈ n * cumsum (v)
63- alloc = @allocated similar (u)
63+ alloc = ( @allocations similar (u)) + 1
6464 mul! (u, L, v, 2 , 2 )
65- @test (@allocated mul! (u, L, v, 2 , 2 )) <= alloc
65+ @test (@allocations mul! (u, L, v, 2 , 2 )) <= alloc
6666 mul! (u, Lv, v, 2 , 2 )
67- @test (@allocated mul! (u, Lv, v, 2 , 2 )) <= alloc
67+ @test (@allocations mul! (u, Lv, v, 2 , 2 )) <= alloc
6868 for α in (false , true , rand (ComplexF64)), β in (false , true , rand (ComplexF64))
6969 for transform in (identity, adjoint, transpose)
7070 @test mul! (copy (u), transform (L), v, α, β) ≈ transform (M)* v* α + u* β
0 commit comments