This function converts the sparse matrix in COO format into a column-oriented dense matrix.
More...
|
| integer(kind(rocsparse_status_success)) function | rocsparse_scoo2dense_ (handle, m, n, nnz, descr, coo_val, coo_row_ind, coo_col_ind, a, ld) |
| |
| integer(kind(rocsparse_status_success)) function | rocsparse_scoo2dense_rank_0 (handle, m, n, nnz, descr, coo_val, coo_row_ind, coo_col_ind, a, ld) |
| |
| integer(kind(rocsparse_status_success)) function | rocsparse_scoo2dense_rank_1 (handle, m, n, nnz, descr, coo_val, coo_row_ind, coo_col_ind, a, ld) |
| |
| integer(kind(rocsparse_status_success)) function | rocsparse_scoo2dense_full_rank (handle, m, n, nnz, descr, coo_val, coo_row_ind, coo_col_ind, a, ld) |
| |
This function converts the sparse matrix in COO format into a column-oriented dense 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 column-oriented dense matrix A. |
| [in] | n | - number of columns of the column-oriented dense matrix A. |
| [in] | nnz | - number of non-zero entries of the sparse COO matrix. |
| [in] | descr | - the descriptor of the column-oriented dense matrix A. The supported matrix type is rocsparse_matrix_type_general and also any valid value of the rocsparse_index_base. |
| [in] | coo_val | - array of nnz non-zero elements of matrix A. |
| [in] | coo_row_ind | - integer array of nnz row indices of the non-zero elements of matrix A. |
| [in] | coo_col_ind | - integer array of nnz column indices of the non-zero elements of matrix A. |
| [out] | A | - array of dimensions (ld, n). |
| [out] | ld | - leading dimension of column-oriented dense matrix A. |
- 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, nnz, or ld is invalid. |
| rocsparse_status_invalid_pointer | A, coo_val, coo_col_ind, or coo_row_ind pointer is invalid. |
- Example
◆ rocsparse_scoo2dense_()
| integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scoo2dense::rocsparse_scoo2dense_ |
( |
type(c_ptr), value |
handle, |
|
|
integer(c_int), value |
m, |
|
|
integer(c_int), value |
n, |
|
|
integer(c_int), value |
nnz, |
|
|
type(c_ptr), value |
descr, |
|
|
type(c_ptr), value |
coo_val, |
|
|
type(c_ptr), value |
coo_row_ind, |
|
|
type(c_ptr), value |
coo_col_ind, |
|
|
type(c_ptr), value |
a, |
|
|
integer(c_int), value |
ld |
|
) |
| |
◆ rocsparse_scoo2dense_full_rank()
| integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scoo2dense::rocsparse_scoo2dense_full_rank |
( |
type(c_ptr) |
handle, |
|
|
integer(c_int) |
m, |
|
|
integer(c_int) |
n, |
|
|
integer(c_int) |
nnz, |
|
|
type(c_ptr) |
descr, |
|
|
real(c_float), dimension(:), target |
coo_val, |
|
|
integer(c_int), dimension(:), target |
coo_row_ind, |
|
|
integer(c_int), dimension(:), target |
coo_col_ind, |
|
|
real(c_float), dimension(:,:), target |
a, |
|
|
integer(c_int) |
ld |
|
) |
| |
◆ rocsparse_scoo2dense_rank_0()
| integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scoo2dense::rocsparse_scoo2dense_rank_0 |
( |
type(c_ptr) |
handle, |
|
|
integer(c_int) |
m, |
|
|
integer(c_int) |
n, |
|
|
integer(c_int) |
nnz, |
|
|
type(c_ptr) |
descr, |
|
|
real(c_float), target |
coo_val, |
|
|
integer(c_int), target |
coo_row_ind, |
|
|
integer(c_int), target |
coo_col_ind, |
|
|
real(c_float), target |
a, |
|
|
integer(c_int) |
ld |
|
) |
| |
◆ rocsparse_scoo2dense_rank_1()
| integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scoo2dense::rocsparse_scoo2dense_rank_1 |
( |
type(c_ptr) |
handle, |
|
|
integer(c_int) |
m, |
|
|
integer(c_int) |
n, |
|
|
integer(c_int) |
nnz, |
|
|
type(c_ptr) |
descr, |
|
|
real(c_float), dimension(:), target |
coo_val, |
|
|
integer(c_int), dimension(:), target |
coo_row_ind, |
|
|
integer(c_int), dimension(:), target |
coo_col_ind, |
|
|
real(c_float), dimension(:), target |
a, |
|
|
integer(c_int) |
ld |
|
) |
| |
The documentation for this interface was generated from the following file: