env_sparse module
Full Documentation for hippynn.custom_kernels.env_sparse
module.
Click here for a summary page.
Pure pytorch implementation of envsum operations
- make_sparse_sense(sensitivities, pair_first, pair_second, n_atom: int)[source]
Construct sensitivities as a sparse matrix with shape (n_atoms * n_nu, n_atoms).
The n_atoms * n_nu is needed because of limitations in the hybrid-sparse matrix multiply routines available in pytorch. This function is implemented seprately because both envsum and sensesum use it. The to_csr call is done afterwards because envsum needs to be transposed.
- Parameters:
sensitivities
pair_first
pair_second
n_atom
- Returns: