Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 929401de authored by Dahua Lin's avatar Dahua Lin

Update show method for Wishart and InverseWishart. Fix #297.

parent cbf8eaec
......@@ -22,6 +22,8 @@ end
dim(d::InverseWishart) = size(d.Psichol, 1)
size(d::InverseWishart) = size(d.Psichol)
show(io::IO, d::InverseWishart) = show_multline(io, d, [(:nu, d.nu), (:Psi, full(d.Psichol))])
function InverseWishart(nu::Real, Psi::Matrix{Float64})
InverseWishart(float64(nu), cholfact(Psi))
end
......
......@@ -23,6 +23,9 @@ end
Wishart(nu::Real, S::Matrix{Float64}) = Wishart(nu, cholfact(S))
show(io::IO, d::Wishart) = show_multline(io, d, [(:nu, d.nu), (:S, full(d.Schol))])
dim(W::Wishart) = size(W.Schol, 1)
size(W::Wishart) = size(W.Schol)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment