Skip to main content

chebyshev_differentiation_matrix

Function chebyshev_differentiation_matrix 

Source
pub fn chebyshev_differentiation_matrix(n: usize) -> Vec<Vec<f64>>
Expand description

The (n+1) × (n+1) differentiation matrix on chebyshev_points: (D u)_i ≈ u'(x_i), exact for polynomials of degree n. The diagonal uses the negative-row-sum trick for accuracy.