Python API¶
The Python calculators accept either NumPy arrays on CPU or CuPy arrays on CUDA.
- class sphericart.SphericalHarmonics(l_max: int)¶
Spherical harmonics calculator, which computes the real spherical harmonics \(Y^m_l\) up to degree
l_max.The calculator accepts either NumPy arrays on CPU or CuPy arrays on CUDA.
- compute(xyz)¶
Calculate spherical harmonics for an
(n_samples, 3)array.
- class sphericart.SolidHarmonics(l_max: int)¶
Solid harmonics calculator, up to degree
l_max.The calculator accepts either NumPy arrays on CPU or CuPy arrays on CUDA.
- compute(xyz)¶
Calculate solid harmonics for an
(n_samples, 3)array.