code: public static int cusparseScsr2csr_compress(
          cusparseHandle handle, 
          int m, 
          int n, 
          cusparseMatDescr descrA, 
          Pointer csrSortedValA, 
          Pointer csrSortedColIndA, 
          Pointer csrSortedRowPtrA, 
          int nnzA, 
          Pointer nnzPerRow, 
          Pointer csrSortedValC, 
          Pointer csrSortedColIndC, 
          Pointer csrSortedRowPtrC, 
          float tol)
      {
          return checkResult(cusparseScsr2csr_compressNative(handle, m, n, descrA, csrSortedValA, csrSortedColIndA, csrSortedRowPtrA, nnzA, nnzPerRow, csrSortedValC, csrSortedColIndC, csrSortedRowPtrC, tol));
      }
docs: Description: This routine takes as input a csr form and compresses it to return a compressed csr form