Update use of isnan in linearalgebra