5.21.22. tools.inertia_tensor

eminus.tools.inertia_tensor(coords, masses=None)[source]

Calculate the inertia tensor for a set of coordinates and masses.

Reference: https://en.wikipedia.org/wiki/Moment_of_inertia

Parameters:

coords – Array of real-space coordinates.

Keyword Arguments:

masses – Mass or weight for each coordinate.

Returns:

Inertia tensor.