rocsparse_set_mat_type Interface Reference

rocsparse_set_mat_type Interface Reference#

HIPFORT API Reference: hipfort_rocsparse::rocsparse_set_mat_type Interface Reference
hipfort_rocsparse::rocsparse_set_mat_type Interface Reference

Specify the matrix type of a matrix descriptor. More...

Public Member Functions

integer(kind(rocsparse_status_success)) function rocsparse_set_mat_type_ (descr, myType)
 

Detailed Description

Specify the matrix type of a matrix descriptor.

rocsparse_set_mat_type sets the matrix type of a matrix descriptor. Valid matrix types are rocsparse_matrix_type_general, rocsparse_matrix_type_symmetric, rocsparse_matrix_type_hermitian or rocsparse_matrix_type_triangular.

Parameters
[in,out]descrthe matrix descriptor.
[in]typerocsparse_matrix_type_general, rocsparse_matrix_type_symmetric, rocsparse_matrix_type_hermitian or rocsparse_matrix_type_triangular.
Return values
rocsparse_status_successthe operation completed successfully.
rocsparse_status_invalid_pointerdescr pointer is invalid.
rocsparse_status_invalid_valuetype is invalid.

Member Function/Subroutine Documentation

◆ rocsparse_set_mat_type_()

integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_set_mat_type::rocsparse_set_mat_type_ ( type(c_ptr), value  descr,
integer(kind(rocsparse_matrix_type_general)), value  myType 
)

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