public static boolean hasUncountable( ZMatrixD1 m )
    {
        int length = m.getDataLength();

        for( int i = 0; i < length; i++ ) {
            double a = m.data[i];
            if( Double.isNaN(a) || Double.isInfinite(a))
                return true;
        }
        return false;
    }
public static boolean hasUncountable ( ZMatrixD1 m ) { int length = m . getDataLength ( ) ; for ( int i = 0 ; i < length ; i ++ ) { double a = m . data [ i ] ; if ( Double . isNaN ( a ) || Double . isInfinite ( a ) ) return true ; } return false ; }
Checks to see if any element in the matrix is NaN of Infinite.

@param m A matrix. Not modified.
@return True if any element in the matrix is NaN of Infinite.