torch.special
Functions
- logit - Computes the logit of each element in the input tensor.
- erf - Computes the error function of each element in the input tensor.
- erfc - Computes the complementary error function of each element in the input tensor.
- erfinv - Computes the inverse error function of each element in the input tensor.
- sinc - Computes the normalized sinc function of each element in the input tensor.
- entr - Computes Shannon entropy element-wise: -x * ln(x), with special handling for boundaries.
- erfcx - Computes the scaled complementary error function: erfcx(x) = exp(x²) * erfc(x).
- i0e - Computes the exponentially scaled modified Bessel function of the first kind, order 0.
- i1 - Computes the modified Bessel function of the first kind, order 1, I₁(x).
- i1e - Computes the exponentially scaled modified Bessel function of the first kind, order 1.
- log_ndtr - Computes the log of the normal cumulative distribution function: log(Φ(x)) = log(ndtr(x)).
- ndtr - Computes the normal (Gaussian) cumulative distribution function (CDF), also called Phi function.
- ndtri - Computes the inverse of the normal CDF (quantile function), also called percent point function (PPF)
- airy_ai - Computes the Airy function Ai(x), solution to the Airy differential equation.
- bessel_j0 - Computes the Bessel function of the first kind of order 0, J₀(x).
- bessel_j1 - Computes the Bessel function of the first kind of order 1, J₁(x).
- bessel_y0 - Computes the Bessel function of the second kind of order 0, Y₀(x), also called Neumann function.
- bessel_y1 - Computes the Bessel function of the second kind of order 1, Y₁(x), also called Neumann function.
- modified_bessel_i0 - Computes the modified Bessel function of the first kind of order 0.
- modified_bessel_i1 - Computes the modified Bessel function of the first kind of order 1.
- modified_bessel_k0 - Computes the modified Bessel function of the second kind of order 0, K₀(x).
- modified_bessel_k1 - Computes the modified Bessel function of the second kind of order 1, K₁(x).
- scaled_modified_bessel_k0 - Computes the exponentially scaled modified Bessel function of the second kind of order 0.
- scaled_modified_bessel_k1 - Computes the exponentially scaled modified Bessel function of the second kind of order 1.
- spherical_bessel_j0 - Computes the spherical Bessel function of the first kind of order 0, j₀(x) = sin(x)/x.
- gammainc - Computes the regularized lower incomplete gamma function, P(a, x) = γ(a, x) / Γ(a).
- gammaincc - Computes the regularized upper incomplete gamma function, Q(a, x) = Γ(a, x) / Γ(a).
- xlog1py - Computes x * log1p(y) with safe handling for x=0 and numerical edge cases.
- zeta - Computes the Hurwitz zeta function, ζ(x, q) = ∑_{n=0}^∞ 1/(q+n)^x.
- multigammaln - Computes the multivariate log-gamma function with dimension p.
- polygamma - Computes the n-th derivative of the digamma function.
- chebyshev_polynomial_t - Computes Chebyshev polynomial of the first kind T_n(x).
- chebyshev_polynomial_u - Computes Chebyshev polynomial of the second kind U_n(x).
- chebyshev_polynomial_v - Computes Chebyshev polynomial of the third kind V_n(x).
- chebyshev_polynomial_w - Computes Chebyshev polynomial of the fourth kind W_n(x).
- shifted_chebyshev_polynomial_t - Computes shifted Chebyshev polynomial of the first kind T*_n(x).
- shifted_chebyshev_polynomial_u - Computes shifted Chebyshev polynomial of the second kind U*_n(x).
- shifted_chebyshev_polynomial_v - Computes shifted Chebyshev polynomial of the third kind V*_n(x).
- shifted_chebyshev_polynomial_w - Computes shifted Chebyshev polynomial of the fourth kind W*_n(x).
- hermite_polynomial_h - Computes Hermite polynomial (physicist's convention) H_n(x).
- hermite_polynomial_he - Computes Hermite polynomial (probabilist's convention) He_n(x).
- laguerre_polynomial_l - Computes Laguerre polynomial L_n(x).
- legendre_polynomial_p - Computes Legendre polynomial P_n(x).
Types
- SpecialUnaryOptions - Options for unary special functions
- SpecialBinaryOptions - Options for binary special functions
- SpecialSoftmaxOptions - Options for softmax operations
- SpecialLogitOptions - Options for logit operation
- SpecialPolynomialOptions - Options for polynomial functions