Chemtrain
JAX MD extensions
init_fractional_coordinates()
Custom functions simplifying the handling of fractional coordinates.
Returns a 2D box tensor and a scale function that projects positions within a box in real space to the unit-hypercube as required by fractional coordinates.
box (Union[float, Array]) – A 1 or 2-dimensional box
Union
float
Array
Tuple[Union[float, Array], Callable]
Tuple
Callable
A tuple (box, scale_fn) of a 2D box tensor and a scale_fn that scales positions in real-space to the unit hypercube.