chebyshev_cl.cpp
// Compute Chebyshev expansion coefficient from grid values
Compute Chebyshev expansion coefficient from grid values
Compute Chebyshev expansion coefficient from grid values
void Chebyshev::nodal_to_coeff(const dev_dvec &b, dev_dvec &a){
    catrev(b, X2);
    X2 = ifft(X2) * 2;
    a = slice[vex::range(0,N)](X2);
    a[0]   = 0.5*a[0];
    a[N-1] = 0.5*a[N-1];
}
void Chebyshev :: nodal_to_coeff ( const dev_dvec & b , dev_dvec & a ) { catrev ( b , X2 ) ; X2 = ifft ( X2 ) * 2 ; a = slice [ vex :: range ( 0 , N ) ] ( X2 ) ; a [ 0 ] = 0.5 * a [ 0 ] ; a [ N - 1 ] = 0.5 * a [ N - 1 ] ; }
Compute Chebyshev expansion coefficient from grid values
Compute Chebyshev expansion coefficient from grid values