xnn.gnn.featurizers.spherical_bessel.spherical_bessel_jn#
- xnn.gnn.featurizers.spherical_bessel.spherical_bessel_jn(l_max, x, n_terms=30)[source]#
Spherical Bessel functions of the first kind, orders 0 to
l_max.See
_spherical_bessel_values()for the evaluation. With a gradient to track, the derivative comes from the identityj_l' = (l j_{l-1} - (l+1) j_{l+1}) / (2l+1): autograd then keepsxonly, not the intermediates of the series, and higher derivatives (force training) come from the same identity. TorchScript evaluates_spherical_bessel_values()directly.