-
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_basesets the index base of a matrix descriptor. Valid options are aoclsparse_index_base_zero or aoclsparse_index_base_one.- Parameters:
descr – [inout] the matrix descriptor.
base – [in] aoclsparse_index_base_zero or aoclsparse_index_base_one.
- Return values:
aoclsparse_status_success – the operation completed successfully.
aoclsparse_status_invalid_pointer –
descrpointer is invalid.aoclsparse_status_invalid_value –
baseis invalid.