code: public static int cusparseSgthr(
          cusparseHandle handle, 
          int nnz, 
          Pointer y, 
          Pointer xVal, 
          Pointer xInd, 
          int idxBase)
      {
          return checkResult(cusparseSgthrNative(handle, nnz, y, xVal, xInd, idxBase));
      }
docs: Description: Gather of non-zero elements from dense vector y into
  sparse vector x.