rocsparse_extract_nnz Interface Reference

rocsparse_extract_nnz Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_extract_nnz Interface Reference
hipfort_rocsparse::rocsparse_extract_nnz Interface Reference

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_extract_nnz_ (handle, descr, nnz)
 

Detailed Description

rocsparse_extract_nnz returns the number of non-zeros in the extracted matrix. The value is available after the analysis phase rocsparse_extract_stage_analysis has been executed. This routine is used in conjunction with rocsparse_extract_buffer_size and rocsparse_extract to extract a lower or upper triangular sparse matrix from an input sparse matrix. See rocsparse_extract for more details.

Note
This routine is asynchronous with respect to the host. This routine supports execution in a hipGraph context.
Parameters
[in]handle- handle to the rocSPARSE library context queue.
[in]descr- descriptor of the extract algorithm.
[out]nnz- the number of non-zeros.
Return values
rocsparse_status_successthe operation completed successfully.
rocsparse_status_invalid_handlethe library context was not initialized.
rocsparse_status_invalid_pointerdescr or nnz pointer is invalid.

Member Function/Subroutine Documentation

◆ rocsparse_extract_nnz_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_extract_nnz::rocsparse_extract_nnz_ ( type(c_ptr), value  handle,
type(c_ptr), value  descr,
integer(c_int64_t)  nnz 
)

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