radtools.absolute_to_relative#

radtools.absolute_to_relative(basis, vector)[source]#

Compute relative coordinates of the vector with respect to the basis.

Parameters:
basis(3, 3) array-like

Lattice vectors.

vector(3,) array-like

Absolute coordinates.

Returns:
relative(3,) numpy.ndarray

Relative coordinates.