Function torch::special::legendre_polynomial_p(const Tensor&, const Tensor&)#
Defined in File special.h
Function Documentation#
-
inline Tensor torch::special::legendre_polynomial_p(const Tensor &x, const Tensor &n)#
Legendre polynomial.
See https://pytorch.org/docs/main/special.html#torch.special.legendre_polynomial_p.
Example:
auto x = torch::randn(128, dtype=kDouble); auto n = torch::randn(128, dtype=kDouble); torch::special::legendre_polynomial_p(x, n);