tfep.utils.misc
Miscellanea utility functions.
Functions
|
Compute a positions from standard atom to flattened format. |
|
Convert atom indices to the indices of the corresponding degrees of freedom in flattened format. |
|
Helper function to convert the a batch of energies from numpy array to PyTorch tensor. |
|
If x is a sequence, return it as a torch.Tensor without copying the memory (if possible). |
|
Compute a positions from flattened to standard atom format. |
|
Helper function to convert the a batch of forces from numpy array to PyTorch tensor. |
|
Remove from |
|
Context manager that temporarily sets the working directory. |