Skip to main content

coo_to_csr

Function coo_to_csr 

Source
pub fn coo_to_csr(
    ctx: &Context,
    coo_row_indices: &DeviceMemory<i32>,
    row_count: usize,
    csr_row_offsets: &mut DeviceMemory<i32>,
    index_base: IndexBase,
) -> Result<()>
Expand description

Converts uncompressed row indices in COO format into compressed row pointers in CSR format.

It can also be used to convert the array containing the uncompressed column indices (corresponding to COO format) into an array of column pointers (corresponding to CSC format).

  • Requires no extra storage.
  • Supports asynchronous execution.
  • Supports CUDA graph capture.