Skip to content

Commit

Permalink
Fix undef ref in lkj_chol sampling
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod authored Sep 25, 2023
1 parent 87aebc2 commit 57e45a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cholesky/lkjcholesky.jl
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function _lkj_cholesky_onion_tri!(
# equivalent steps in algorithm in reference are marked.
@assert size(A) == (d, d)
A[1, 1] = 1
d > 1 || return R
d > 1 || return A
β = η + (d - 2)//2
# 1. Initialization
w0 = 2 * rand(rng, Beta(β, β)) - 1
Expand Down

0 comments on commit 57e45a0

Please sign in to comment.