Skip to content

Commit

Permalink
Test for Matrix{eltype} 2
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <[email protected]>
  • Loading branch information
jishnub and devmotion authored Dec 8, 2023
1 parent ab97838 commit 4e0cf97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/pdmtypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ using Test
@test M isa PDiagMat
@test Matrix(M) Diagonal(A)
Mat32 = @inferred Matrix{Float32}(M)
@test eltype(Mat32) == Float32
@test Mat32 isa Matrix{Float32}
@test Mat32 Float32.(Diagonal(A))

M = @inferred AbstractPDMat(Symmetric(Diagonal(A)))
Expand Down

0 comments on commit 4e0cf97

Please sign in to comment.