|
| integer(c_int) function | rocsparse_csr2ell_width_ (handle, m, csr_descr, csr_row_ptr, ell_descr, ell_width) |
| |
| integer(kind(rocsparse_status_success)) function | rocsparse_csr2ell_width_typed (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) |
| |
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 can return before the actual computation has finished.
-
This routine supports execution in a hipGraph context.
- Parameters
-
| [in] | handle | - handle to the rocSPARSE library context queue. |
| [in] | m | - number of rows of the sparse CSR matrix. |
| [in] | csr_descr | - descriptor of the sparse CSR matrix. Currently, only rocsparse_matrix_type_general is supported. |
| [in] | csr_row_ptr | - array of m+1 elements that point to the start of every row of the sparse CSR matrix. |
| [in] | ell_descr | - descriptor of the sparse ELL matrix. Currently, only rocsparse_matrix_type_general is supported. |
| [out] | ell_width | - pointer to the number of non-zero elements per row in ELL storage format. |
- Return values
-
| rocsparse_status_success | the operation completed successfully. |
| rocsparse_status_invalid_handle | the library context was not initialized. |
| rocsparse_status_invalid_size | m is invalid. |
| rocsparse_status_invalid_pointer | csr_descr, csr_row_ptr, or ell_width pointer is invalid. |
| rocsparse_status_internal_error | an internal error occurred. |
| rocsparse_status_not_implemented | rocsparse_matrix_type != rocsparse_matrix_type_general. |