@@ -32,25 +32,31 @@ include("getjacobian.jl")
32
32
test_with_logabsdet_jacobian (log ∘ foo, x, getjacobian)
33
33
end
34
34
35
- @testset " getjacobian on mapped and broadcasted" begin
35
+ @testset " with_logabsdet_jacobian on mapped and broadcasted" begin
36
36
for f in (Base. Fix1 (map, foo), Base. Fix1 (broadcast, foo))
37
37
for arg in (x, fill (x,), Ref (x), (x,), X)
38
38
test_with_logabsdet_jacobian (f, arg, getjacobian, compare = isaprx)
39
39
end
40
40
end
41
41
end
42
42
43
- @testset " getjacobian on identity, adjoint and transpose" begin
43
+ @testset " with_logabsdet_jacobian on identity, adjoint and transpose" begin
44
44
for f in (identity, adjoint, transpose)
45
45
for arg in (x, A)
46
46
test_with_logabsdet_jacobian (f, arg, getjacobian)
47
47
end
48
48
end
49
49
end
50
50
51
- @testset " getjacobian on inv" begin
51
+ @testset " with_logabsdet_jacobian on inv" begin
52
52
for arg in (x, A, CA)
53
53
test_with_logabsdet_jacobian (inv, arg, getjacobian)
54
54
end
55
55
end
56
+
57
+ @testset " with_logabsdet_jacobian on log and exp functions" begin
58
+ for f in (exp, log, exp2, log2, exp10, log10, expm1, log1p)
59
+ test_with_logabsdet_jacobian (f, x, getjacobian)
60
+ end
61
+ end
56
62
end
0 commit comments