Function heongpu::chebyshev_coeffs

Function Documentation

std::vector<Complex64> heongpu::chebyshev_coeffs(const std::vector<double> &nodes, const std::vector<Complex64> &fi, double a, double b)

Compute Chebyshev coefficients from function values at nodes.

Parameters:
  • nodes – Chebyshev interpolation nodes

  • fi – Function values at nodes

  • a – Lower bound of interval

  • b – Upper bound of interval

Returns:

std::vector<Complex64> Chebyshev coefficients