Calculate the invariant orthogonality defect that is zero for diagonal matrices

invariant_orthogonality_defect(A)

Arguments

A

Input matrix (n x p, where n >> p)

Value

The invariant orthogonality defect that is zero for diagonal matrices