rocsparse_scsr2dense Interface Reference

rocsparse_scsr2dense Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_scsr2dense Interface Reference
hipfort_rocsparse::rocsparse_scsr2dense Interface Reference

This function converts the sparse matrix in CSR format into a column-oriented dense matrix. More...

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_scsr2dense_ (handle, m, n, descr, csr_val, csr_row_ptr, csr_col_ind, a, ld)
 
integer(kind(rocsparse_status_success)) function rocsparse_scsr2dense_rank_0 (handle, m, n, descr, csr_val, csr_row_ptr, csr_col_ind, a, ld)
 
integer(kind(rocsparse_status_success)) function rocsparse_scsr2dense_rank_1 (handle, m, n, descr, csr_val, csr_row_ptr, csr_col_ind, a, ld)
 
integer(kind(rocsparse_status_success)) function rocsparse_scsr2dense_full_rank (handle, m, n, descr, csr_val, csr_row_ptr, csr_col_ind, a, ld)
 

Detailed Description

This function converts the sparse matrix in CSR 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]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]csr_val- array of nnz ( = csr_row_ptr[m] - csr_row_ptr[0] ) non-zero elements of matrix A.
[in]csr_row_ptr- integer array of m+1 elements that contains the start of every row and the end of the last row plus one.
[in]csr_col_ind- integer array of nnz ( = csr_row_ptr[m] - csr_row_ptr[0] ) 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_successthe operation completed successfully.
rocsparse_status_invalid_handlethe library context was not initialized.
rocsparse_status_invalid_sizem, n, or ld is invalid.
rocsparse_status_invalid_pointerA, csr_val, csr_row_ptr, or csr_col_ind pointer is invalid.
Example

Member Function/Subroutine Documentation

◆ rocsparse_scsr2dense_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scsr2dense::rocsparse_scsr2dense_ ( type(c_ptr), value  handle,
integer(c_int), value  m,
integer(c_int), value  n,
type(c_ptr), value  descr,
type(c_ptr), value  csr_val,
type(c_ptr), value  csr_row_ptr,
type(c_ptr), value  csr_col_ind,
type(c_ptr), value  a,
integer(c_int), value  ld 
)

◆ rocsparse_scsr2dense_full_rank()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scsr2dense::rocsparse_scsr2dense_full_rank ( type(c_ptr)  handle,
integer(c_int)  m,
integer(c_int)  n,
type(c_ptr)  descr,
real(c_float), dimension(:), target  csr_val,
integer(c_int), dimension(:), target  csr_row_ptr,
integer(c_int), dimension(:), target  csr_col_ind,
real(c_float), dimension(:,:), target  a,
integer(c_int)  ld 
)

◆ rocsparse_scsr2dense_rank_0()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scsr2dense::rocsparse_scsr2dense_rank_0 ( type(c_ptr)  handle,
integer(c_int)  m,
integer(c_int)  n,
type(c_ptr)  descr,
real(c_float), target  csr_val,
integer(c_int), target  csr_row_ptr,
integer(c_int), target  csr_col_ind,
real(c_float), target  a,
integer(c_int)  ld 
)

◆ rocsparse_scsr2dense_rank_1()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scsr2dense::rocsparse_scsr2dense_rank_1 ( type(c_ptr)  handle,
integer(c_int)  m,
integer(c_int)  n,
type(c_ptr)  descr,
real(c_float), dimension(:), target  csr_val,
integer(c_int), dimension(:), target  csr_row_ptr,
integer(c_int), dimension(:), target  csr_col_ind,
real(c_float), dimension(:), target  a,
integer(c_int)  ld 
)

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