helixmc.util.unitarize

helixmc.util.unitarize(R)

Enforce unitarity of the input matrix using Gram-Schmidt process. This function modifies the input matrix inplace.

Parameters:

R : ndarray, shape (N,3,3)

(List of) input matrix to be unitarized.

Returns:

R : ndarray, shape (N,3,3)

Unitarized input matrix.