rocsparse_sparse_to_dense Interface Reference

rocsparse_sparse_to_dense Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_sparse_to_dense Interface Reference
hipfort_rocsparse::rocsparse_sparse_to_dense Interface Reference

Sparse matrix to dense matrix conversion. More...

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_sparse_to_dense_ (handle, mat_A, mat_B, alg, buffer_size, temp_buffer)

Detailed Description

Sparse matrix to dense matrix conversion.

rocsparse_sparse_to_dense rocsparse_sparse_to_dense performs the conversion of a sparse matrix in CSR, CSC, or COO format to a dense matrix

This function writes the required allocation size (in bytes) to buffer_size and returns without performing the sparse to dense operation, when a nullptr is passed for temp_buffer.
This function is non blocking and executed asynchronously with respect to the host. It may return before the actual computation has finished.
[in]handlehandle to the rocsparse library context queue.
[in]mat_Asparse matrix descriptor.
[in]mat_Bdense matrix descriptor.
[in]algalgorithm for the sparse to dense computation.
[out]buffer_sizenumber of bytes of the temporary storage buffer. buffer_size is set when temp_buffer is nullptr.
[in]temp_buffertemporary storage buffer allocated by the user. When a nullptr is passed, the required allocation size (in bytes) is written to buffer_size and function returns without performing the sparse to dense operation.
Return values
rocsparse_status_successthe operation completed successfully.
rocsparse_status_invalid_handlethe library context was not initialized.
rocsparse_status_invalid_pointermat_A, mat_B, or buffer_size pointer is invalid.

Member Function/Subroutine Documentation

◆ rocsparse_sparse_to_dense_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_sparse_to_dense::rocsparse_sparse_to_dense_ ( type(c_ptr), value  handle,
type(c_ptr), value  mat_A,
type(c_ptr), value  mat_B,
integer(kind(rocsparse_sparse_to_dense_alg_default)), value  alg,
integer(c_size_t)  buffer_size,
type(c_ptr), value  temp_buffer 

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