pub fn cheb_dirichlet<A: FloatNum>(n: usize) -> BaseR2r<A>
Expand description

Function space with Dirichlet boundary conditions

 u(-1)=0 and u(1)=0
 \phi_k = T_k - T_{k+2}

Example

Transform array to function space.

use funspace::cheb_dirichlet;
use funspace::traits::BaseTransform;
use ndarray::Array1;
let cd = cheb_dirichlet::<f64>(10);
let mut y = Array1::<f64>::linspace(0., 9., 10);
let yhat: Array1<f64> = cd.forward(&mut y, 0);