Closed mossr closed 4 years ago
This addresses #98 where the original Matrix type (e.g., Matrix{Int}) can differ from the type returned by Cholesky (e.g., Matrix{Float64}). Therefore, we simply convert the Matrix type to the same paremetric types already converted by Cholesky.
Matrix{Int}
Cholesky
Matrix{Float64}
Previously, this failed:
PDMat([1 0; 0 1])
This also addresses https://github.com/JuliaStats/Distributions.jl/issues/1004 (where my original problem started).
Could you please add the example as a test? Then I think this one should be good to go.
@andreasnoack Good idea—I've since added this example in pdmtypes.jl
pdmtypes.jl
This addresses #98 where the original Matrix type (e.g.,
Matrix{Int}
) can differ from the type returned byCholesky
(e.g.,Matrix{Float64}
). Therefore, we simply convert the Matrix type to the same paremetric types already converted byCholesky
.Previously, this failed:
This also addresses https://github.com/JuliaStats/Distributions.jl/issues/1004 (where my original problem started).