aoclsparse_set_mat_index_base() - aoclsparse_set_mat_index_base() - 5.3 English - 68552

AOCL API Guide (68552)

Document_ID
68552
Release_Date
2026-05-13
Version
5.3 English
aoclsparse_status aoclsparse_set_mat_index_base(aoclsparse_mat_descr descr, aoclsparse_index_base base)#

Specify the index base of a matrix descriptor.

aoclsparse_set_mat_index_base sets the index base of a matrix descriptor. Valid options are aoclsparse_index_base_zero or aoclsparse_index_base_one.

Parameters:
Return values:
  • aoclsparse_status_success – the operation completed successfully.

  • aoclsparse_status_invalid_pointer – descr pointer is invalid.

  • aoclsparse_status_invalid_value – base is invalid.