aoclsparse_create_mat_descr() - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 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_pointerdescr pointer is invalid.