quemb.shared.helper.normalize_column_signs¶
- quemb.shared.helper.normalize_column_signs(arr, epsilon=1e-05)¶
Divide each column by the sign of its first non-zero entry (if any).
Can be used to compare two MO matrices for (near-)equality, because it fixes the sign factor for both.