public static boolean checkDuplicateElements ( DMatrixSparseCSC A ) { A = A . copy ( ) ; // create a copy so that it doesn't modify A A . sortIndices ( null ) ; return ! checkSortedFlag ( A ) ; }
Checks for duplicate elements . A is sorted