Hi,

The documentation does not discuss whether gsl_integration_workspace is reusable. Is it? For example, can one allocate a single workspace, and use that to do two different integrations afterwards? Some of our tests with gsl-1.14 indicate that the answer is 'no'. But is there perhaps a way to clear the workspace before using it again (and save on allocation time that way)? Or is there reusablity at least in the sense that one can redo the same integral at higher accuracy, using the same workspace and integrand function, and save time in the process because partial results are already in the workspace?

If the workspace is not reusable in any sense, why is it advantageous to require passing a workspace to the integration routines, instead of workspace size (a pure integer)? Since in this case one would anyway have to allocate a workspace for every single integration, and of course free it afterwards, which the integration routines could then just do automatically and invisibly.

Denes

_______________________________________________
Help-gsl mailing list
Help-gsl@gnu.org
https://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to