From e93a4f9a8990cebc9a7f683f28dff19014cb5d21 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Tue, 10 Dec 2024 09:10:06 -0600 Subject: [PATCH] Update src/pdmat.jl Co-authored-by: David Widmann --- src/pdmat.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdmat.jl b/src/pdmat.jl index d512ac1..5abc8f4 100644 --- a/src/pdmat.jl +++ b/src/pdmat.jl @@ -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)