help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] is gsl_integration_workspace reusable?


From: Denes Molnar
Subject: [Help-gsl] is gsl_integration_workspace reusable?
Date: Wed, 30 Nov 2011 16:09:30 -0500 (EST)
User-agent: Alpine 2.00 (DEB 1167 2008-08-23)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]