Call g.update() before g.run() to load initial values, and
again at any point during execution to update the values.
g.init();
g.update(g.wts, hostarray, 2*SAMPLES); // Initial load
g.run(40);
// Later, update coefficients without stopping the graph
int new_coefficients[2*SAMPLES] = { /* ... */ };
g.update(g.wts, new_coefficients, 2*SAMPLES); // Runtime update