diff options
author | Justin Bedo <cu@cua0.org> | 2014-11-01 10:18:31 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2014-11-01 10:18:31 +1100 |
commit | aeafc1692afa5952f3d06195916bb38463c1674c (patch) | |
tree | 8d0c0a3ddad35f4f5b85f4e53709e0cb8ba15385 /Math/LinProg/LPSolve/bindings.c | |
parent | 946d8bcd81c1ea580032cd9f8140aad223b3156f (diff) |
Benchmarking & optimisations
Diffstat (limited to 'Math/LinProg/LPSolve/bindings.c')
-rw-r--r-- | Math/LinProg/LPSolve/bindings.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Math/LinProg/LPSolve/bindings.c b/Math/LinProg/LPSolve/bindings.c new file mode 100644 index 0000000..fbaf09f --- /dev/null +++ b/Math/LinProg/LPSolve/bindings.c @@ -0,0 +1,12 @@ +#include <lp_lib.h> + +char +hs_set_row(void *model, int row, int n, int *cols, double *ws) +{ + int i; + + for(i = 0; i < n; i++) + set_mat(model, row, cols[i], ws[i]); + + return 0; +} |