-
aoclsparse_status aoclsparse_optimize(aoclsparse_matrix mat)#
Performs analysis and possible data allocations and matrix restructuring operations to accelerate sparse operations involving matrices.
In aoclsparse_optimize() sparse matrices are restructured based on matrix analysis, into different storage formats to improve data access and thus performance.
- Parameters:
mat – [in] sparse matrix in CSR format and sparse format information inside
- Return values:
aoclsparse_status_success – the operation completed successfully.
aoclsparse_status_invalid_size –
mis invalid.aoclsparse_status_invalid_pointer –
aoclsparse_status_internal_error – an internal error occurred.