Special Functions¶
Use these explicit Advect counterparts when a
scipy.special
function must remain differentiable or stageable. See the
Scientific Python tutorial
for a logsumexp gradient and the
compatibility table for exact coverage.
special ¶
Traceable high-value counterparts to scipy.special.
gammaln ¶
Compute the logarithm of the absolute gamma function.
digamma ¶
Compute the logarithmic derivative of the gamma function.
polygamma ¶
Compute the n-th derivative of digamma with SciPy broadcasting.
erf ¶
Compute the error function.
erfc ¶
Compute the complementary error function.
erfcx ¶
Compute the scaled complementary error function.
erfinv ¶
Compute the inverse error function.
expit ¶
Compute the logistic sigmoid.
log_expit ¶
Compute the logarithm of the logistic sigmoid.
ndtr ¶
Compute the standard normal cumulative distribution function.
log_ndtr ¶
Compute the logarithm of the standard normal cumulative distribution.
ndtri ¶
Compute the inverse standard normal cumulative distribution.
logsumexp ¶
logsumexp(
a: object,
axis: object = None,
b: object = None,
keepdims: bool = False,
return_sign: bool = False,
) -> object
Compute SciPy-compatible weighted, optionally signed log-sum-exp.
softmax ¶
Compute the softmax function along axis.
log_softmax ¶
Compute the logarithm of the softmax function along axis.
$ █