xnn.common.featurizers.radial.SmoothBesselRBF#

class xnn.common.featurizers.radial.SmoothBesselRBF(n_rbf=3, cutoff=5.0)[source]#

Bases: Module

Smooth spherical Bessel radial basis (Kocer, Mason and Erturk 2020).

n_rbf orthogonal combinations of zeroth-order spherical Bessel functions that vanish smoothly at cutoff (see smooth_bessel_coefficients()); no envelope is applied. The coefficients stay exact in float64 through casts and loads.

Parameters:
  • n_rbf (int, optional) – Number of basis functions, by default 3.

  • cutoff (float, optional) – The cutoff radius, by default 5.0.

forward(r)[source]#

Expand distances (...) into the basis (..., n_rbf).

Parameters:

r (Tensor)

Return type:

Tensor