Skip to content

Commit

Permalink
Add test for dim=1 lkjcholesky
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod committed Sep 26, 2023
1 parent 57e45a0 commit 8a32b53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/cholesky/lkjcholesky.jl
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ using FiniteDifferences
nkstests = 4 # use for appropriate Bonferroni correction for KS test

@testset "rand" begin
@test only(rand(LKJCholesky(1, 0.5)).L) == 1.0
@testset for p in (2, 4, 10), η in (0.5, 1, 3), uplo in ('L', 'U')
d = LKJCholesky(p, η, uplo)
test_draw(d, rand(rng, d))
Expand Down

0 comments on commit 8a32b53

Please sign in to comment.