@@ -55,8 +55,8 @@ LinearAlgebra.mul!(y::AbstractVector, A::Union{SimpleFunctionMap,SimpleComplexFu
55
55
@test @inferred ! ishermitian (F)
56
56
@test @inferred ! ishermitian (FC)
57
57
@test @inferred ! isposdef (F)
58
- @test occursin (" 10×10 SimpleFunctionMap{Float64 }" , sprint ((t, s) -> show (t, " text/plain" , s), F))
59
- @test occursin (" 10×10 SimpleComplexFunctionMap{Complex{Float64} }" , sprint ((t, s) -> show (t, " text/plain" , s), FC))
58
+ @test occursin (" 10×10 SimpleFunctionMap{$( eltype (F)) }" , sprint ((t, s) -> show (t, " text/plain" , s), F))
59
+ @test occursin (" 10×10 SimpleComplexFunctionMap{$( eltype (FC)) }" , sprint ((t, s) -> show (t, " text/plain" , s), FC))
60
60
α = rand (ComplexF64); β = rand (ComplexF64)
61
61
v = rand (ComplexF64, 10 ); V = rand (ComplexF64, 10 , 3 )
62
62
w = rand (ComplexF64, 10 ); W = rand (ComplexF64, 10 , 3 )
@@ -71,8 +71,10 @@ LinearAlgebra.mul!(y::AbstractVector, A::Union{SimpleFunctionMap,SimpleComplexFu
71
71
@test F * v ≈ L * v
72
72
# generic 5-arg mul! and matrix-mul!
73
73
@test mul! (copy (w), F, v, α, β) ≈ L* v* α + w* β
74
+ @test mul! (copy (w), F, v, 0 , β) ≈ w* β
74
75
@test mul! (copy (W), F, V) ≈ L* V
75
76
@test mul! (copy (W), F, V, α, β) ≈ L* V* α + W* β
77
+ @test mul! (copy (W), F, V, 0 , β) ≈ W* β
76
78
77
79
Fs = sparse (F)
78
80
@test SparseMatrixCSC (F) == Fs == L
0 commit comments