You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some examples (e.g. with additive inflation) I have encountered non-positive empirical covariance matrices from calls such as the above.
Even though this should be equal to cov(u,dims=2) in some instances of u the call to cov(u,u,dims=2) produces order(machine precision) asymmetry, and thus isposdef(cov(u,u,dims=2))=false. meanwhile, cov(u,dims=2) seems to always return symmetric matrices and is a safer option as isposdef(cov(u,dims=2))=true.
EnsembleKalmanProcesses.jl/src/EnsembleKalmanProcess.jl
Line 238 in 3ba08bb
In some examples (e.g. with additive inflation) I have encountered non-positive empirical covariance matrices from calls such as the above.
Even though this should be equal to
cov(u,dims=2)
in some instances ofu
the call tocov(u,u,dims=2)
produces order(machine precision) asymmetry, and thusisposdef(cov(u,u,dims=2))=false
. meanwhile,cov(u,dims=2)
seems to always return symmetric matrices and is a safer option asisposdef(cov(u,dims=2))=true
.e.g.
And so the importantly,
cyy
fails the checks:The text was updated successfully, but these errors were encountered: