hipsparsecsr2cscex2 Interface Reference

hipsparsecsr2cscex2 Interface Reference#

HIPFORT API Reference: hipfort_hipsparse::hipsparsecsr2cscex2 Interface Reference
hipfort_hipsparse::hipsparsecsr2cscex2 Interface Reference

Convert a sparse CSR matrix into a sparse CSC matrix. More...

Public Member Functions

integer(kind(hipsparse_status_success)) function hipsparsecsr2cscex2_ (handle, m, n, nnz, csrval, csrrowptr, csrcolind, cscval, csccolptr, cscrowind, valtype, copyvalues, idxbase, alg, buffer)
 

Detailed Description

Convert a sparse CSR matrix into a sparse CSC matrix.

hipsparseCsr2cscEx2 converts a CSR matrix into a CSC matrix. hipsparseCsr2cscEx2 can also be used to convert a CSC matrix into a CSR matrix. copyValues decides whether cscVal is being filled during conversion (HIPSPARSE_ACTION_NUMERIC) or not (HIPSPARSE_ACTION_SYMBOLIC).

Note
The resulting matrix can also be seen as the transpose of the input matrix.
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 hipSPARSE library context queue.
[in]m- number of rows of the sparse CSR matrix.
[in]n- number of columns of the sparse CSR matrix.
[in]nnz- number of non-zero entries of the sparse CSR matrix.
[in]csrVal- array of nnz elements of the sparse CSR matrix.
[in]csrRowPtr- array of m+1 elements that point to the start of every row of the sparse CSR matrix.
[in]csrColInd- array of nnz elements containing the column indices of the sparse CSR matrix.
[in]cscVal- array of nnz elements of the sparse CSC matrix.
[in]cscColPtr- array of n+1 elements that point to the start of every column of the sparse CSC matrix.
[in]cscRowInd- array of nnz elements containing the row indices of the sparse CSC matrix.
[in]valType- The data type of the values arrays csrVal and cscVal. Can be HIP_R_32F, HIP_R_64F, HIP_C_32F, or HIP_C_64F.
[in]copyValues- HIPSPARSE_ACTION_SYMBOLIC or HIPSPARSE_ACTION_NUMERIC.
[in]idxBase- HIPSPARSE_INDEX_BASE_ZERO or HIPSPARSE_INDEX_BASE_ONE.
[in]alg- HIPSPARSE_CSR2CSC_ALG_DEFAULT, HIPSPARSE_CSR2CSC_ALG1 or HIPSPARSE_CSR2CSC_ALG2.
[in]buffer- temporary storage buffer allocated by the user. The size is returned by hipsparseCsr2cscEx2_bufferSize().
Return values
HIPSPARSE_STATUS_SUCCESSthe operation completed successfully.
HIPSPARSE_STATUS_INVALID_VALUEhandle, m, n, nnz, csrRowPtr, csrColInd, or pBufferSizeInBytes pointer is invalid.
HIPSPARSE_STATUS_INTERNAL_ERRORan internal error occurred.

Member Function/Subroutine Documentation

◆ hipsparsecsr2cscex2_()

integer(kind(hipsparse_status_success)) function hipfort_hipsparse::hipsparsecsr2cscex2::hipsparsecsr2cscex2_ ( type(c_ptr), value  handle,
integer(c_int), value  m,
integer(c_int), value  n,
integer(c_int), value  nnz,
type(c_ptr), value  csrval,
type(c_ptr), value  csrrowptr,
type(c_ptr), value  csrcolind,
type(c_ptr), value  cscval,
type(c_ptr), value  csccolptr,
type(c_ptr), value  cscrowind,
integer(kind(hip_r_32f)), value  valtype,
integer(kind(hipsparse_action_symbolic)), value  copyvalues,
integer(kind(hipsparse_index_base_zero)), value  idxbase,
integer(kind(hipsparse_csr2csc_alg_default)), value  alg,
type(c_ptr), value  buffer 
)

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