Skip to content

Commit

Permalink
Update test bugs_primitives.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
serenlee authored Dec 13, 2024
1 parent d795d24 commit a4cd10d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/bugs_primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ end
]
LogDensityProblems.logdensity_and_gradient(ad_model, theta)
end

@testset "inprod(a,b)" begin
A = [3, 0.7, 6]
B = [2.6, 1.3, 3]
@test JuliaBUGS.BUGSPrimitives.inprod(A,B) = 26.71
end

0 comments on commit a4cd10d

Please sign in to comment.