diff --git a/test/with_logabsdet_jacobian.jl b/test/with_logabsdet_jacobian.jl index f69125d..d5f4484 100644 --- a/test/with_logabsdet_jacobian.jl +++ b/test/with_logabsdet_jacobian.jl @@ -24,10 +24,10 @@ dlog1mlogistic(x) = -logistic(x) dlogitexp(x) = inv(1 - exp(x)) dlogit1mexp(x) = -inv(1 - exp(x)) - derivative(::Type{loglogistic}, x) = dloglogistic(x) - derivative(::Type{log1mlogistic}, x) = dlog1mlogistic(x) - derivative(::Type{logitexp}, x) = dlogitexp(x) - derivative(::Type{logit1mexp}, x) = dlogit1mexp(x) + derivative(f::typeof(loglogistic), x) = dloglogistic(x) + derivative(f::typeof(log1mlogistic), x) = dlog1mlogistic(x) + derivative(f::typeof(logitexp), x) = dlogitexp(x) + derivative(f::typeof(logit1mexp), x) = dlogit1mexp(x) ChangesOfVariables.test_with_logabsdet_jacobian(loglogistic, x, derivative) ChangesOfVariables.test_with_logabsdet_jacobian(logitexp, -x, derivative)