rocsparse_csr2ell_width Interface Reference

rocsparse_csr2ell_width Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_csr2ell_width Interface Reference
hipfort_rocsparse::rocsparse_csr2ell_width Interface Reference

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

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_csr2ell_width_ (handle, m, csr_descr, csr_row_ptr, ell_descr, ell_width)
 
integer(kind(rocsparse_status_success)) function rocsparse_csr2ell_width_rank_0 (handle, m, csr_descr, csr_row_ptr, ell_descr, ell_width)
 
integer(kind(rocsparse_status_success)) function rocsparse_csr2ell_width_rank_1 (handle, m, csr_descr, csr_row_ptr, ell_descr, ell_width)
 

Detailed Description

Convert a sparse CSR matrix into a sparse ELL matrix.

rocsparse_csr2ell_width computes the maximum of the per row non-zero elements over all rows, the ELL width, for a given CSR matrix.

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 CSR matrix.
[in]csr_descrdescriptor of the sparse CSR matrix. Currently, only rocsparse_matrix_type_general is supported.
[in]csr_row_ptrarray of m+1 elements that point to the start of every row of the sparse CSR matrix.
[in]ell_descrdescriptor of the sparse ELL matrix. Currently, only rocsparse_matrix_type_general is supported.
[out]ell_widthpointer to the number of non-zero elements per row in ELL storage format.
Return values
rocsparse_status_successthe operation completed successfully.
rocsparse_status_invalid_handlethe library context was not initialized.
rocsparse_status_invalid_sizem is invalid.
rocsparse_status_invalid_pointercsr_descr, csr_row_ptr, or ell_width pointer is invalid.
rocsparse_status_internal_erroran internal error occurred.
rocsparse_status_not_implementedrocsparse_matrix_type != rocsparse_matrix_type_general.

Member Function/Subroutine Documentation

◆ rocsparse_csr2ell_width_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_csr2ell_width::rocsparse_csr2ell_width_ ( type(c_ptr), value  handle,
integer(c_int), value  m,
type(c_ptr), value  csr_descr,
type(c_ptr), value  csr_row_ptr,
type(c_ptr), value  ell_descr,
type(c_ptr), value  ell_width 
)

◆ rocsparse_csr2ell_width_rank_0()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_csr2ell_width::rocsparse_csr2ell_width_rank_0 ( type(c_ptr)  handle,
integer(c_int)  m,
type(c_ptr)  csr_descr,
integer(c_int), target  csr_row_ptr,
type(c_ptr)  ell_descr,
integer(c_int), target  ell_width 
)

◆ rocsparse_csr2ell_width_rank_1()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_csr2ell_width::rocsparse_csr2ell_width_rank_1 ( type(c_ptr)  handle,
integer(c_int)  m,
type(c_ptr)  csr_descr,
integer(c_int), dimension(:), target  csr_row_ptr,
type(c_ptr)  ell_descr,
integer(c_int), dimension(:), target  ell_width 
)

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