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 5c604ae commit e93a4f9
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 @@ -18,7 +18,7 @@ end
PDMat{T,S}(pdm::PDMat) where {T,S} = PDMat{T,S}(pdm.mat, pdm.chol)

function PDMat{T}(m::AbstractMatrix, c::Cholesky) where T
c = Cholesky{T}(c)
c = convert(Cholesky{T}, c)
return PDMat{T,mattype(c)}(m, c)
end
PDMat{T}(pdm::PDMat) where T = PDMat{T}(pdm.mat, pdm.chol)
Expand Down

0 comments on commit e93a4f9

Please sign in to comment.