Skip to content

Commit 9ea5cf1

Browse files
committed
attempt to fix segfault
1 parent 08d2ede commit 9ea5cf1

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

test/distributions.jl

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,8 @@ matrix_cont_dists = [
456456
#DistSpec(:TuringInverseWishart, (dim, cov_mat), fill(cov_mat, 2)),
457457
]
458458
xmatrix_cont_dists = [
459+
matrix_cont_dists;
460+
459461
# Matrix x
460462
filter(!isnothing, filldist_spec.(uni_cont_dists; n = (2, 2)));
461463
filter(!isnothing, filldist_spec.(multi_cont_dists; disttype = :multi, n = 2));
@@ -467,8 +469,6 @@ xmatrix_cont_dists = [
467469
filter(!isnothing, filldist_spec.(multi_cont_dists; disttype = :multi, n = 2, d = 2));
468470
filter(!isnothing, arraydist_spec.(uni_cont_dists; n = (2, 2), d = 2));
469471
filter(!isnothing, arraydist_spec.(multi_cont_dists; disttype = :multi, n = 2, d = 2));
470-
471-
matrix_cont_dists;
472472
]
473473
broken_matrix_cont_dists = [
474474
# Other
@@ -532,14 +532,7 @@ separator()
532532

533533
@testset "Matrix-variate continuous distributions" begin
534534
test_head("Testing: Matrix-variate continuous distributions")
535-
n = length(xmulti_disc_dists)
536-
for d in xmatrix_cont_dists[1:div(n,2)]
537-
test_info(d.name)
538-
for testf in get_all_functions(d, true)
539-
test_ad(testf.f, testf.x)
540-
end
541-
end
542-
for d in xmatrix_cont_dists[div(n,2)+1:end]
535+
for d in xmatrix_cont_dists
543536
test_info(d.name)
544537
for testf in get_all_functions(d, true)
545538
test_ad(testf.f, testf.x)

0 commit comments

Comments
 (0)