diff --git a/docs/interfaces/c_cpp/getting_started_c.md b/docs/interfaces/c_cpp/getting_started_c.md index b2d2f43..af138b5 100644 --- a/docs/interfaces/c_cpp/getting_started_c.md +++ b/docs/interfaces/c_cpp/getting_started_c.md @@ -89,7 +89,10 @@ To set custom settings, a `piqp_settings` struct has to be instantiated and the ```c piqp_settings* settings = (piqp_settings*) malloc(sizeof(piqp_settings)); -piqp_set_default_settings(settings); +// dense interface +piqp_set_default_settings_dense(settings); +// sparse interface +piqp_set_default_settings_sparse(settings); settings->verbose = 1; settings->compute_timings = 1; ``` diff --git a/examples/c/c_dense_example.c b/examples/c/c_dense_example.c index 2843c99..3d0b072 100644 --- a/examples/c/c_dense_example.c +++ b/examples/c/c_dense_example.c @@ -31,7 +31,7 @@ int main() piqp_settings* settings = (piqp_settings*) malloc(sizeof(piqp_settings)); piqp_data_dense* data = (piqp_data_dense*) malloc(sizeof(piqp_data_dense)); - piqp_set_default_settings(settings); + piqp_set_default_settings_dense(settings); settings->verbose = 1; settings->compute_timings = 1; diff --git a/examples/c/c_sparse_example.c b/examples/c/c_sparse_example.c index d066bd3..ed50f4a 100644 --- a/examples/c/c_sparse_example.c +++ b/examples/c/c_sparse_example.c @@ -40,7 +40,7 @@ int main() piqp_settings* settings = (piqp_settings*) malloc(sizeof(piqp_settings)); piqp_data_sparse* data = (piqp_data_sparse*) malloc(sizeof(piqp_data_sparse)); - piqp_set_default_settings(settings); + piqp_set_default_settings_sparse(settings); settings->verbose = 1; settings->compute_timings = 1;