chebyshev_U_basis_matrix
chebyshev_U_basis_matrix(s, degree)
Compute second-kind Chebyshev basis values.
Parameters:
-
s(torch.Tensor of shape (...,)) –Scaled coordinates in
[-1, 1]. -
degree(int) –Number of second-kind basis terms used for derivatives.
Returns:
-
basis(torch.Tensor of shape (..., degree)) –Values of
U_k(s)fork = 0, ..., degree - 1.