For solving a linear system of equations, the following workflow is recommended:
Call
aoclsparse_itsol_s_init()oraoclsparse_itsol_d_init()oraoclsparse_itsol_c_init()oraoclsparse_itsol_z_init()to initialize aoclsparse_itsol_handle.Choose the solver and adjust its behaviour by setting optional parameters with
aoclsparse_itsol_option_set(), see there all options available.If the reverse communication interface is desired, define the system’s input with
aoclsparse_itsol_s_rci_input()(oraoclsparse_itsol_d_rci_input()oraoclsparse_itsol_c_rci_input()oraoclsparse_itsol_z_rci_input()).Solve the system with either using direct interface
aoclsparse_itsol_s_solve()(oraoclsparse_itsol_d_solve()oraoclsparse_itsol_c_solve()oraoclsparse_itsol_z_solve()) or reverse communication interfaceaoclsparse_itsol_s_rci_solve()(oraoclsparse_itsol_d_rci_solve()oraoclsparse_itsol_c_rci_solve()oraoclsparse_itsol_z_rci_solve())Free the memory with
aoclsparse_itsol_destroy().