rocsparse_ell2csr_nnz Interface Reference

rocsparse_ell2csr_nnz Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_ell2csr_nnz Interface Reference
hipfort_rocsparse::rocsparse_ell2csr_nnz Interface Reference

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

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_ell2csr_nnz_ (handle, m, n, ell_descr, ell_width, ell_col_ind, csr_descr, csr_row_ptr, csr_nnz)
 
integer(kind(rocsparse_status_success)) function rocsparse_ell2csr_nnz_rank_0 (handle, m, n, ell_descr, ell_width, ell_col_ind, csr_descr, csr_row_ptr, csr_nnz)
 
integer(kind(rocsparse_status_success)) function rocsparse_ell2csr_nnz_rank_1 (handle, m, n, ell_descr, ell_width, ell_col_ind, csr_descr, csr_row_ptr, csr_nnz)
 

Detailed Description

Convert a sparse ELL matrix into a sparse CSR matrix.

rocsparse_ell2csr_nnz computes the total CSR non-zero elements and the CSR row offsets, that point to the start of every row of the sparse CSR matrix, for a given ELL matrix. It is assumed that csr_row_ptr has been allocated with size m + 1.

Note
This function is non blocking and executed asynchronously with respect to the host. It may return before the actual computation has finished.
Parameters
[in]handlehandle to the rocsparse library context queue.
[in]mnumber of rows of the sparse ELL matrix.
[in]nnumber of columns of the sparse ELL matrix.
[in]ell_descrdescriptor of the sparse ELL matrix. Currently, only rocsparse_matrix_type_general is supported.
[in]ell_widthnumber of non-zero elements per row in ELL storage format.
[in]ell_col_indarray of m times ell_width elements containing the column indices of the sparse ELL matrix.
[in]csr_descrdescriptor of the sparse CSR matrix. Currently, only rocsparse_matrix_type_general is supported.
[out]csr_row_ptrarray of m+1 elements that point to the start of every row of the sparse CSR matrix.
[out]csr_nnzpointer to the total number of non-zero elements in CSR storage format.
Return values
rocsparse_status_successthe operation completed successfully.
rocsparse_status_invalid_handlethe library context was not initialized.
rocsparse_status_invalid_sizem, n or ell_width is invalid.
rocsparse_status_invalid_pointerell_descr, ell_col_ind, csr_descr, csr_row_ptr or csr_nnz pointer is invalid.
rocsparse_status_not_implementedrocsparse_matrix_type != rocsparse_matrix_type_general.

Member Function/Subroutine Documentation

◆ rocsparse_ell2csr_nnz_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_ell2csr_nnz::rocsparse_ell2csr_nnz_ ( type(c_ptr), value  handle,
integer(c_int), value  m,
integer(c_int), value  n,
type(c_ptr), value  ell_descr,
integer(c_int), value  ell_width,
type(c_ptr), value  ell_col_ind,
type(c_ptr), value  csr_descr,
type(c_ptr), value  csr_row_ptr,
type(c_ptr), value  csr_nnz 
)

◆ rocsparse_ell2csr_nnz_rank_0()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_ell2csr_nnz::rocsparse_ell2csr_nnz_rank_0 ( type(c_ptr)  handle,
integer(c_int)  m,
integer(c_int)  n,
type(c_ptr)  ell_descr,
integer(c_int)  ell_width,
integer(c_int), target  ell_col_ind,
type(c_ptr)  csr_descr,
integer(c_int), target  csr_row_ptr,
integer(c_int), target  csr_nnz 
)

◆ rocsparse_ell2csr_nnz_rank_1()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_ell2csr_nnz::rocsparse_ell2csr_nnz_rank_1 ( type(c_ptr)  handle,
integer(c_int)  m,
integer(c_int)  n,
type(c_ptr)  ell_descr,
integer(c_int)  ell_width,
integer(c_int), dimension(:), target  ell_col_ind,
type(c_ptr)  csr_descr,
integer(c_int), dimension(:), target  csr_row_ptr,
integer(c_int), dimension(:), target  csr_nnz 
)

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