rocsparse_hyb2csr_buffer_size Interface Reference#
hipfort_rocsparse::rocsparse_hyb2csr_buffer_size Interface Reference
Convert a sparse HYB matrix into a sparse CSR matrix. More...
Public Member Functions | |
| integer(kind(rocsparse_status_success)) function | rocsparse_hyb2csr_buffer_size_ (handle, descr, hyb, csr_row_ptr, buffer_size) |
| integer(kind(rocsparse_status_success)) function | rocsparse_hyb2csr_buffer_size_rank_0 (handle, descr, hyb, csr_row_ptr, buffer_size) |
| integer(kind(rocsparse_status_success)) function | rocsparse_hyb2csr_buffer_size_rank_1 (handle, descr, hyb, csr_row_ptr, buffer_size) |
Detailed Description
Convert a sparse HYB matrix into a sparse CSR matrix.
rocsparse_hyb2csr_buffer_size returns the size of the temporary storage buffer required by rocsparse_shyb2csr(), rocsparse_dhyb2csr(), rocsparse_chyb2csr() and rocsparse_dhyb2csr(). The temporary storage buffer must be allocated by the user.
- Parameters
-
[in] handle handle to the rocsparse library context queue. [in] descr descriptor of the sparse HYB matrix. Currently, only rocsparse_matrix_type_generalis supported.[in] hyb sparse matrix in HYB format. [in] csr_row_ptr array of m+1elements that point to the start of every row of the sparse CSR matrix.[out] buffer_size number of bytes of the temporary storage buffer required by rocsparse_shyb2csr(), rocsparse_dhyb2csr(), rocsparse_chyb2csr() and rocsparse_zhyb2csr().
- Return values
-
rocsparse_status_success the operation completed successfully. rocsparse_status_invalid_handle the library context was not initialized. rocsparse_status_invalid_pointer descr,hyb,csr_row_ptrorbuffer_sizepointer is invalid.rocsparse_status_internal_error an internal error occurred. rocsparse_status_not_implemented rocsparse_matrix_type!=rocsparse_matrix_type_general.
Member Function/Subroutine Documentation
◆ rocsparse_hyb2csr_buffer_size_()
| integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_hyb2csr_buffer_size::rocsparse_hyb2csr_buffer_size_ | ( | type(c_ptr), value | handle, |
| type(c_ptr), value | descr, | ||
| type(c_ptr), value | hyb, | ||
| type(c_ptr), value | csr_row_ptr, | ||
| integer(c_size_t) | buffer_size | ||
| ) |
◆ rocsparse_hyb2csr_buffer_size_rank_0()
| integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_hyb2csr_buffer_size::rocsparse_hyb2csr_buffer_size_rank_0 | ( | type(c_ptr) | handle, |
| type(c_ptr) | descr, | ||
| type(c_ptr) | hyb, | ||
| integer(c_int), target | csr_row_ptr, | ||
| integer(c_size_t) | buffer_size | ||
| ) |
◆ rocsparse_hyb2csr_buffer_size_rank_1()
| integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_hyb2csr_buffer_size::rocsparse_hyb2csr_buffer_size_rank_1 | ( | type(c_ptr) | handle, |
| type(c_ptr) | descr, | ||
| type(c_ptr) | hyb, | ||
| integer(c_int), dimension(:), target | csr_row_ptr, | ||
| integer(c_size_t) | buffer_size | ||
| ) |
The documentation for this interface was generated from the following file: