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.ndarray

    points, (..., 3)

  • L: int

    maximum order

  • kind: str

    'regular' (R_lm) or 'irregular' (I_lm)

  • center: np.ndarray | None

    optional center subtracted from pts ((..., 3) broadcast against (..., N, 3))

  • real: bool

    if True return the real Racah-normalized solid harmonics, (L+1)^2 values ordered m = -l..l per l (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


Feedback

Examples

Templates

Documentation