code: public static int cusparseXcoo2csr(
          cusparseHandle handle, 
          Pointer cooRowInd, 
          int nnz, 
          int m, 
          Pointer csrSortedRowPtr, 
          int idxBase)
      {
          return checkResult(cusparseXcoo2csrNative(handle, cooRowInd, nnz, m, csrSortedRowPtr, idxBase));
      }
docs: Description: This routine compresses the indecis of rows or columns.
  It can be interpreted as a conversion from COO to CSR sparse storage
  format.