Skip to content

Commit

Permalink
Update test_bidiag.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dlfivefifty committed Aug 7, 2024
1 parent 88af704 commit 548e886
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/test_bidiag.jl
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ import LinearAlgebra: mul!, istril, istriu, diagm, isdiag, triu, tril, triu!, tr
B = rand(Float64,10,10)
C = Tridiagonal(rand(Float64,9),rand(Float64,10),rand(Float64,9))
@test promote_rule(Matrix{Float64}, Bidiagonal{Float64}) == Matrix{Float64}
@test promote_rule(Matrix, Bidiagonal{Float64}) == Matrix
@test promote(B,A) == (B, convert(Matrix{Float64}, A))
@test promote(B,A) isa Tuple{Matrix{Float64}, Matrix{Float64}}
@test promote(C,A) == (C,Tridiagonal(zeros(Float64,9),convert(Vector{Float64},A.dv),convert(Vector{Float64},A.ev)))
Expand Down

0 comments on commit 548e886

Please sign in to comment.