fixes to det, eigvals, isequal