solid_harmonics
solid_harmonics(pts, L, kind='regular', center=None, real=False):
Evaluates solid harmonics up to order L by stable recurrences
(no trig functions, no Legendre polynomials).
pts:np.ndarraypoints,
(..., 3)L:intmaximum order
kind:str'regular'(R_lm) or'irregular'(I_lm)center:np.ndarray | Noneoptional center subtracted from
pts((..., 3)broadcast against(..., N, 3))real:boolif
Truereturn the real Racah-normalized solid harmonics,(L+1)^2values orderedm = -l..lperl(r^l C^real_lm/C^real_lm / r^(l+1), see the module docstring) instead of the packed complex ones:returns:np.ndarray(..., (L+1)(L+2)/2)complex or(..., (L+1)^2)real