desc.basis.ZernikePolynomial.get_idx
- ZernikePolynomial.get_idx(L=0, M=0, N=0, error=True)Source
Get the index of the
'modes'array corresponding to given mode numbers.- Parameters:
L (int) – Radial mode number.
M (int) – Poloidal mode number.
N (int) – Toroidal mode number.
error (bool) – Whether to raise exception if the mode is not in the basis (default), or to return an empty array.
- Returns:
idx (int) – Index of given mode numbers.