PAOFLOW.elphon_native#
Optional Rust kernels of the electron-phonon pipeline (paoflow_rs).
The pure-NumPy implementations stay the reference; the native kernels are used when the
extension is importable and PAOFLOW_ELPHON_DISABLE is not set. Parity is tested at
1e-10 relative (the summation order differs).
Functions#
Whether the native electron-phonon kernels can be used. |
|
|
Native |
Package Contents#
- PAOFLOW.elphon_native.indirect_absorption(energy_k, energy_kq, velocity_k, velocity_kq, coupling, omega_ph, occ_k, occ_kq, bose, photon, etas, degauss, cutoff, pairs_k, pairs_i, pairs_j)[source]#
Native
indirect_absorption_kernelaccumulation (see the Rust kernel for the layout).degaussandcutoffare per pair, shape(npairs,)(a constant width is broadcast to it).- Returns:
gaussian, lorentzian – Without the
weight * 8 pi^2 g_s / omega^2prefactor.- Return type:
ndarray
(ntemp, neta, 3, nomega)