rocsparse_scatter Interface Reference

rocsparse_scatter Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_scatter Interface Reference
hipfort_rocsparse::rocsparse_scatter Interface Reference

Scatter elements from a sparse vector into a dense vector. More...

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_scatter_ (handle, x, y)
 

Detailed Description

Scatter elements from a sparse vector into a dense vector.

rocsparse_scatter scatters the elements from the sparse vector \(x\) in the dense vector \(y\).

for(i = 0; i < nnz; ++i)
{
y[x_ind[i]] = x_val[i];
}
Note
This function is non blocking and executed asynchronously with respect to the host. It may return before the actual computation has finished.
Parameters
[in]handlehandle to the rocsparse library context queue.
[in]xsparse vector \(x\).
[out]ydense vector \(y\).
Return values
rocsparse_status_successthe operation completed successfully.
rocsparse_status_invalid_handlethe library context was not initialized.
rocsparse_status_invalid_pointerx or y pointer is invalid.

Member Function/Subroutine Documentation

◆ rocsparse_scatter_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scatter::rocsparse_scatter_ ( type(c_ptr), value  handle,
type(c_ptr), value  x,
type(c_ptr), value  y 
)

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