rocsparse_csr2csc_buffer_size Interface Reference#
hipfort_rocsparse::rocsparse_csr2csc_buffer_size Interface Reference
Convert a sparse CSR matrix into a sparse CSC matrix. More...
Public Member Functions | |
integer(kind(rocsparse_status_success)) function | rocsparse_csr2csc_buffer_size_ (handle, m, n, nnz, csr_row_ptr, csr_col_ind, copy_values, buffer_size) |
integer(kind(rocsparse_status_success)) function | rocsparse_csr2csc_buffer_size_rank_0 (handle, m, n, nnz, csr_row_ptr, csr_col_ind, copy_values, buffer_size) |
integer(kind(rocsparse_status_success)) function | rocsparse_csr2csc_buffer_size_rank_1 (handle, m, n, nnz, csr_row_ptr, csr_col_ind, copy_values, buffer_size) |
Detailed Description
Convert a sparse CSR matrix into a sparse CSC matrix.
rocsparse_csr2csc_buffer_size
returns the size of the temporary storage buffer required by rocsparse_scsr2csc(), rocsparse_dcsr2csc(), rocsparse_ccsr2csc() and rocsparse_zcsr2csc(). The temporary storage buffer must be allocated by the user.
- Parameters
-
[in] handle handle to the rocsparse library context queue. [in] m number of rows of the sparse CSR matrix. [in] n number of columns of the sparse CSR matrix. [in] nnz number of non-zero entries of the sparse CSR matrix. [in] csr_row_ptr array of m+1
elements that point to the start of every row of the sparse CSR matrix.[in] csr_col_ind array of nnz
elements containing the column indices of the sparse CSR matrix.[in] copy_values rocsparse_action_symbolic
orrocsparse_action_numeric
.[out] buffer_size number of bytes of the temporary storage buffer required by rocsparse_scsr2csc(), rocsparse_dcsr2csc(), rocsparse_ccsr2csc() and rocsparse_zcsr2csc().
- Return values
-
rocsparse_status_success the operation completed successfully. rocsparse_status_invalid_handle the library context was not initialized. rocsparse_status_invalid_size m
,n
ornnz
is invalid.rocsparse_status_invalid_pointer csr_row_ptr
,csr_col_ind
orbuffer_size
pointer is invalid.rocsparse_status_internal_error an internal error occurred.
Member Function/Subroutine Documentation
◆ rocsparse_csr2csc_buffer_size_()
integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_csr2csc_buffer_size::rocsparse_csr2csc_buffer_size_ | ( | type(c_ptr), value | handle, |
integer(c_int), value | m, | ||
integer(c_int), value | n, | ||
integer(c_int), value | nnz, | ||
type(c_ptr), value | csr_row_ptr, | ||
type(c_ptr), value | csr_col_ind, | ||
integer(kind(rocsparse_action_symbolic)), value | copy_values, | ||
integer(c_size_t) | buffer_size | ||
) |
◆ rocsparse_csr2csc_buffer_size_rank_0()
integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_csr2csc_buffer_size::rocsparse_csr2csc_buffer_size_rank_0 | ( | type(c_ptr) | handle, |
integer(c_int) | m, | ||
integer(c_int) | n, | ||
integer(c_int) | nnz, | ||
integer(c_int), target | csr_row_ptr, | ||
integer(c_int), target | csr_col_ind, | ||
integer(kind(rocsparse_action_symbolic)) | copy_values, | ||
integer(c_size_t) | buffer_size | ||
) |
◆ rocsparse_csr2csc_buffer_size_rank_1()
integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_csr2csc_buffer_size::rocsparse_csr2csc_buffer_size_rank_1 | ( | type(c_ptr) | handle, |
integer(c_int) | m, | ||
integer(c_int) | n, | ||
integer(c_int) | nnz, | ||
integer(c_int), dimension(:), target | csr_row_ptr, | ||
integer(c_int), dimension(:), target | csr_col_ind, | ||
integer(kind(rocsparse_action_symbolic)) | copy_values, | ||
integer(c_size_t) | buffer_size | ||
) |
The documentation for this interface was generated from the following file: