Adds a minor tweak to how to identify whether a matrix is a real matrix times a phase. Instead of finding the phase looking at the first element of the array it now look at the element with the largest absolute value. These prevents being fooled if the first entry is 0.
Adds a minor tweak to how to identify whether a matrix is a real matrix times a phase. Instead of finding the phase looking at the first element of the array it now look at the element with the largest absolute value. These prevents being fooled if the first entry is 0.