This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

hipsparsexcoo2csr Interface Reference

hipsparsexcoo2csr Interface Reference#

HIPFORT API Reference: hipfort_hipsparse::hipsparsexcoo2csr Interface Reference
hipfort_hipsparse::hipsparsexcoo2csr Interface Reference

Convert a sparse COO matrix into a sparse CSR matrix. More...

Public Member Functions

integer(kind(hipsparse_status_success)) function hipsparsexcoo2csr_ (handle, cooRowInd, nnz, m, csrRowPtr, idxBase)
 
integer(kind(hipsparse_status_success)) function hipsparsexcoo2csr_rank_0 (handle, cooRowInd, nnz, m, csrRowPtr, idxBase)
 
integer(kind(hipsparse_status_success)) function hipsparsexcoo2csr_rank_1 (handle, cooRowInd, nnz, m, csrRowPtr, idxBase)
 

Detailed Description

Convert a sparse COO matrix into a sparse CSR matrix.

hipsparseXcoo2csr converts the COO array containing the row indices into a CSR array of row offsets, that point to the start of every row. It is assumed that the COO row index array is sorted.

Note
It can also be used, to convert a COO array containing the column indices into a CSC array of column offsets, that point to the start of every column. Then, it is assumed that the COO column index array is sorted, instead.
This function is non blocking and executed asynchronously with respect to the host. It may return before the actual computation has finished.

Member Function/Subroutine Documentation

◆ hipsparsexcoo2csr_()

integer(kind(hipsparse_status_success)) function hipfort_hipsparse::hipsparsexcoo2csr::hipsparsexcoo2csr_ ( type(c_ptr), value  handle,
type(c_ptr), value  cooRowInd,
integer(c_int), value  nnz,
integer(c_int), value  m,
type(c_ptr), value  csrRowPtr,
integer(kind(hipsparse_index_base_zero)), value  idxBase 
)

◆ hipsparsexcoo2csr_rank_0()

integer(kind(hipsparse_status_success)) function hipfort_hipsparse::hipsparsexcoo2csr::hipsparsexcoo2csr_rank_0 ( type(c_ptr)  handle,
integer(c_int), target  cooRowInd,
integer(c_int)  nnz,
integer(c_int)  m,
integer(c_int), target  csrRowPtr,
integer(kind(hipsparse_index_base_zero))  idxBase 
)

◆ hipsparsexcoo2csr_rank_1()

integer(kind(hipsparse_status_success)) function hipfort_hipsparse::hipsparsexcoo2csr::hipsparsexcoo2csr_rank_1 ( type(c_ptr)  handle,
integer(c_int), dimension(:), target  cooRowInd,
integer(c_int)  nnz,
integer(c_int)  m,
integer(c_int), dimension(:), target  csrRowPtr,
integer(kind(hipsparse_index_base_zero))  idxBase 
)

The documentation for this interface was generated from the following file: