rocsparse_spmat_get_size Interface Reference

rocsparse_spmat_get_size Interface Reference#

hipFORT API Reference: hipfort_rocsparse::rocsparse_spmat_get_size Interface Reference
hipfort_rocsparse::rocsparse_spmat_get_size Interface Reference

Get the number of rows, columns, and non-zeros from the sparse matrix descriptor. More...

Public Member Functions

integer(c_int) function rocsparse_spmat_get_size_ (descr, rows, cols, nnz)
 
integer(kind(rocsparse_status_success)) function rocsparse_spmat_get_size_typed (descr, rows, cols, nnz)
 

Detailed Description

Get the number of rows, columns, and non-zeros from the sparse matrix descriptor.

Parameters
[in]descr- the pointer to the sparse matrix descriptor.
[out]rows- number of rows in the sparse matrix.
[out]cols- number of columns in the sparse matrix.
[out]nnz- number of non-zeros in sparse matrix.
Return values
rocsparse_status_successthe operation completed successfully.
rocsparse_status_invalid_pointerif descr is invalid.
rocsparse_status_invalid_sizeif rows, cols, or nnz is invalid.

Member Function/Subroutine Documentation

◆ rocsparse_spmat_get_size_()

integer(c_int) function hipfort_rocsparse::rocsparse_spmat_get_size::rocsparse_spmat_get_size_ ( type(c_ptr), value  descr,
type(c_ptr), value  rows,
type(c_ptr), value  cols,
type(c_ptr), value  nnz 
)

◆ rocsparse_spmat_get_size_typed()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_spmat_get_size::rocsparse_spmat_get_size_typed ( type(c_ptr), value  descr,
integer(c_int64_t), target  rows,
integer(c_int64_t), target  cols,
integer(c_int64_t), target  nnz 
)

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