From aeafc1692afa5952f3d06195916bb38463c1674c Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Sat, 1 Nov 2014 10:18:31 +1100 Subject: Benchmarking & optimisations --- Math/LinProg/LPSolve/bindings.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Math/LinProg/LPSolve/bindings.c (limited to 'Math/LinProg/LPSolve/bindings.c') 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 + +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; +} -- cgit v1.2.3