aoclsparse_create_mat_descr() - aoclsparse_create_mat_descr() - 6.0 English - 68552

AOCL API Guide (68552)

Document_ID
68552
Release_Date
2026-11-10
Version
6.0 English
aoclsparse_status aoclsparse_create_mat_descr(aoclsparse_mat_descr *descr)#

Create a matrix descriptor.

aoclsparse_create_mat_descr creates a matrix descriptor. It initializes aoclsparse_matrix_type to aoclsparse_matrix_type_general and aoclsparse_index_base to aoclsparse_index_base_zero. It should be destroyed at the end using aoclsparse_destroy_mat_descr().

Parameters:
  • descr – [out] the pointer to the matrix descriptor.

Return values:
  • aoclsparse_status_success – the operation completed successfully.

  • aoclsparse_status_invalid_pointer – descr pointer is invalid.