Skip to content

Commit

Permalink
Update src/pdmat.jl
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <[email protected]>
  • Loading branch information
timholy and devmotion authored Dec 10, 2024
1 parent e93a4f9 commit b6956f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pdmat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ end
PDMat(mat::AbstractMatrix) = PDMat(mat, cholesky(mat))

function PDMat{T,S}(c::Cholesky) where {T,S}
c = Cholesky{T,S}(c)
c = convert(Cholesky{T,S}, c)
return PDMat{T,S}(AbstractMatrix(c), c)
end
function PDMat{T}(c::Cholesky) where T
Expand Down

0 comments on commit b6956f0

Please sign in to comment.