hipsparsecreateidentitypermutation Interface Reference#
hipfort_hipsparse::hipsparsecreateidentitypermutation Interface Reference
Create the identity map. More...
Public Member Functions | |
| integer(c_int) function | hipsparsecreateidentitypermutation_ (handle, n, p) |
| integer(kind(hipsparse_status_success)) function | hipsparsecreateidentitypermutation_rank_0 (handle, n, p) |
| integer(kind(hipsparse_status_success)) function | hipsparsecreateidentitypermutation_rank_1 (handle, n, p) |
Detailed Description
Create the identity map.
hipsparseCreateIdentityPermutation stores the identity map in p, such that \(p = 0:1:(n-1)\).
for(i = 0; i < n; ++i)
{
p[i] = i;
}
- Note
- This function is non-blocking and executed asynchronously with respect to the host. It can return before the actual computation has finished.
- Parameters
-
[in] handle - handle to the hipSPASRE library context queue. [in] n - size of the map p.[out] p - array of nintegers containing the map.
- Return values
-
HIPSPARSE_STATUS_SUCCESS the operation completed successfully. HIPSPARSE_STATUS_INVALID_VALUE handle,n, orppointer is invalid.
Member Function/Subroutine Documentation
◆ hipsparsecreateidentitypermutation_()
| integer(c_int) function hipfort_hipsparse::hipsparsecreateidentitypermutation::hipsparsecreateidentitypermutation_ | ( | type(c_ptr), value | handle, |
| integer(c_int), value | n, | ||
| type(c_ptr), value | p | ||
| ) |
◆ hipsparsecreateidentitypermutation_rank_0()
| integer(kind(hipsparse_status_success)) function hipfort_hipsparse::hipsparsecreateidentitypermutation::hipsparsecreateidentitypermutation_rank_0 | ( | type(c_ptr), value | handle, |
| integer(c_int) | n, | ||
| integer(c_int), target | p | ||
| ) |
◆ hipsparsecreateidentitypermutation_rank_1()
| integer(kind(hipsparse_status_success)) function hipfort_hipsparse::hipsparsecreateidentitypermutation::hipsparsecreateidentitypermutation_rank_1 | ( | type(c_ptr), value | handle, |
| integer(c_int) | n, | ||
| integer(c_int), dimension(:), target | p | ||
| ) |
The documentation for this interface was generated from the following file: