From 0cbe98f879e502affef9583668a71abfbbfcafdb Mon Sep 17 00:00:00 2001 From: David Widmann Date: Thu, 25 Nov 2021 15:30:29 +0100 Subject: [PATCH] Fix `_wishart_genA!` (#207) * Fix `_wishart_genA!` * Update Project.toml --- Project.toml | 4 ++-- src/matrixvariate.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index fdef280f..5f76c656 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "DistributionsAD" uuid = "ced4e74d-a319-5a8a-b0ac-84af2272839c" -version = "0.6.32" +version = "0.6.33" [deps] Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e" @@ -27,7 +27,7 @@ ChainRules = "1" ChainRulesCore = "1" Compat = "3.6" DiffRules = "0.1, 1.0" -Distributions = "0.25.15" +Distributions = "0.25.32" FillArrays = "0.8, 0.9, 0.10, 0.11, 0.12" NaNMath = "0.3" PDMats = "0.9, 0.10, 0.11" diff --git a/src/matrixvariate.jl b/src/matrixvariate.jl index 716c9a08..06df1c98 100644 --- a/src/matrixvariate.jl +++ b/src/matrixvariate.jl @@ -109,7 +109,7 @@ end #### Sampling function Distributions._rand!(rng::AbstractRNG, d::TuringWishart, A::AbstractMatrix) - Distributions._wishart_genA!(rng, Distributions.dim(d), d.df, A) + Distributions._wishart_genA!(rng, A, d.df) unwhiten!(d.chol, A) A .= A * A' end