chebyshev_basis_matrix
chebyshev_basis_matrix(s, degree, dtype=torch.float32)
Compute first-kind Chebyshev basis values.
Parameters:
-
s(torch.Tensor of shape (...,)) –Scaled coordinates in
[-1, 1]. -
degree(int) –Maximum polynomial degree.
-
dtype(dtype, default:torch.float32) –Precision of the computation.
Returns:
-
basis(torch.Tensor of shape (..., degree + 1)) –Values of
T_k(s)fork = 0, ..., degree.