Skip to content

Commit

Permalink
fix c examples
Browse files Browse the repository at this point in the history
  • Loading branch information
RSchwan committed Nov 1, 2024
1 parent f76c56a commit f386017
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion docs/interfaces/c_cpp/getting_started_c.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
```
Expand Down
2 changes: 1 addition & 1 deletion examples/c/c_dense_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion examples/c/c_sparse_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f386017

Please sign in to comment.