spectre.basis

Module Contents

spectre.basis.get_cheby_basis_single(s, lrad)

Evaluate Chebyshev basis functions at a single point with coordinate (s)

Args:

s (float): s value of the point lrad (int): radial resolution

Returns:

np.ndarray [lrad+1, 2]: modes (and derivatives) evaluated at point (s)

spectre.basis.get_zernike_basis_single(sarr, lrad, mpol)

Evaluate Zernike basis functions at a single point with coordinate (s)

Args:

s (float): s value of the point lrad (int): radial resolution mpol (int): poloidal Fourier resolution

Returns:

np.ndarray[lrad+1, mpol+1, 2]: modes (and derivatives) evaluated at point (s)

spectre.basis.get_cheby_basis_single_w2derivs(s, lrad)
spectre.basis.get_zernike_basis_single_w2derivs(sarr, lrad, mpol)