qimpy.math
Math functions extending the core torch set.
Functions
Get list of prime factors of N in ascending order |
|
Check whether N has only small prime factors. |
|
Compute ceil(num/den) with purely integer operations |
|
Compute complex exponential exp(i x). |
|
Compute absolute value squared of complex or real tensor. |
|
Conjugate transpose of a batch of matrices. |
|
Accumulate \(f |x|^2\) to out in-place. |
|
Accumulate \(f x y\) to out in-place. |
|
Return orthonormalization matrix of a basis. |
|
Solve Hermitian generalized eigenvalue problem. |
Classes
Set of radial functions in real and reciprocal space. |
Modules
Calculate spherical harmonics and their product expansions. |
|
Calculate spherical Bessel functions. |
|
Generate and evaluate quintic (fifth-order) splines. |