memoize.gp "memoizes" a
Pari/GP function so values
returned by it on each call are cached and re-used. This is good for
recursions, slow calculations, or initializations. See the comments in
memoize.gp for details.
foo(x,y) = some_hairy_code(); ...;
foo = memoize(foo);
memoize.gp(21k, and sig)
memoize-5.tar.gz(25k, and sig)
This page Copyright 2014, 2015, 2016, 2017 Kevin Ryde, except for the GPLv3 logo which is Copyright Free Software Foundation and used here in accordance with its terms.
(Back to the sitemap, or the Pari/GP section there)