We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a03aba commit 0c0ab2aCopy full SHA for 0c0ab2a
ext/LogExpFunctionsInverseFunctionsExt.jl
@@ -22,4 +22,7 @@ InverseFunctions.inverse(::typeof(logitexp)) = loglogistic
22
InverseFunctions.inverse(::typeof(log1mlogistic)) = logit1mexp
23
InverseFunctions.inverse(::typeof(logit1mexp)) = log1mlogistic
24
25
+InverseFunctions.inverse(::typeof(softplus)) = invsofplus
26
+InverseFunctions.inverse(::typeof(invsofplus)) = softplus
27
+
28
end # module
test/inverse.jl
@@ -17,4 +17,7 @@
17
18
InverseFunctions.test_inverse(log1mlogistic, randexp())
19
InverseFunctions.test_inverse(logit1mexp, -randexp())
20
21
+ InverseFunctions.test_inverse(softplus, randn())
+ InverseFunctions.test_inverse(invsoftplus, randexp())
end
0 commit comments