Use this condition instead of it: <code>Math.abs(unsafe_get(i, i)) <= Matrices.EPS</code>