xnn.gnn.featurizers.spherical_bessel.zonal_harmonics#
- xnn.gnn.featurizers.spherical_bessel.zonal_harmonics(l_max, cos_alpha)[source]#
The
m = 0real spherical harmonicsY_l^0of a polar angle.- Parameters:
l_max (int) – Highest degree.
cos_alpha (Tensor) – Cosine of the polar angle, any shape.
- Returns:
Y_l^0(alpha) = sqrt((2l+1) / 4pi) P_l(cos alpha)forl = 0 .. l_maxalong a new last axis, shape(..., l_max + 1), in the dtype ofcos_alpha. The Legendre polynomials come from the three-term recurrence, evaluated in float64.- Return type:
Tensor