We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As mentioned in #1602, #1596 and #791 a naive MvNormal([0 0; 0 1]) fails with
MvNormal([0 0; 0 1])
ERROR: PosDefException: matrix is not positive definite; Cholesky factorization failed.
The proposed workaround for rand is to use PSDMat but that gives wrong results. Here's a MWE with Distribution 0.25.100 and PDMatsExtras 2.6.3:
rand
PSDMat
julia> using Distributions, PDMatsExtras julia> x = MvNormal([0, 0], PSDMat([0. 0; 0 1])) MvNormal{Float64, PSDMat{Float64, Matrix{Float64}}, Vector{Float64}}( dim: 2 μ: [0.0, 0.0] Σ: [0.0 0.0; 0.0 1.0] ) julia> rand(x) 2-element Vector{Float64}: -1.045836214782949 0.0
It looks like the output values are swapped.
The text was updated successfully, but these errors were encountered:
Should be fixed by invenia/PDMatsExtras.jl#33
Sorry, something went wrong.
I believe this can now be closed as fixed in PDMatsExtras
Thanks for the quick fix!
No branches or pull requests
As mentioned in #1602, #1596 and #791 a naive
MvNormal([0 0; 0 1])
fails withThe proposed workaround for
rand
is to usePSDMat
but that gives wrong results. Here's a MWE with Distribution 0.25.100 and PDMatsExtras 2.6.3:It looks like the output values are swapped.
The text was updated successfully, but these errors were encountered: