chebyshev_time_curvature_matrix
chebyshev_time_curvature_matrix(degree, n_quad=64)
Penalty matrix of the squared second derivative in the rescaled time.
R[k, l] = int_{-1}^{1} T_k''(s) T_l''(s) ds, so that for x(s) = sum_k c_k T_k(s),
c^T R c = int_{-1}^{1} |x''(s)|^2 ds. Computed by Gauss-Legendre quadrature, exact
for n_quad > degree - 2.
Parameters:
-
degree(int) –Polynomial degree.
-
n_quad(int, default:64) –Number of quadrature points.
Returns:
-
torch.Tensor of shape (degree + 1, degree + 1)–Penalty matrix (float64).