Rate this Page

Function torch::special::chebyshev_polynomial_t(const Tensor&, const Tensor&)#

Function Documentation#

inline Tensor torch::special::chebyshev_polynomial_t(const Tensor &x, const Tensor &n)#

Chebyshev polynomial of the first kind.

See https://pytorch.org/docs/main/special.html#torch.special.chebyshev_polynomial_t.

Example:

auto x = torch::randn(128, dtype=kDouble);
auto n = torch::randn(128, dtype=kDouble);

torch::special::chebyshev_polynomial_t(x, n);