Kevin Ryde on Tue, 09 Dec 2014 09:15:40 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
- To: pari-users@pari.math.u-bordeaux.fr
- Subject: memoize.gp
- From: Kevin Ryde <user42_kevin@yahoo.com.au>
- Date: Tue, 09 Dec 2014 19:10:59 +1100
- Delivery-date: Tue, 09 Dec 2014 09:15:40 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1418112928; bh=/OJVdgEIJlG8oVgbL6feOEl/Txw85lbxwaK+JbHW130=; h=From:To:Subject:Date:From:Subject; b=DhEPKRyyfgYGT6EUS12hNjpccV6btyBABfS4djMsd53TZGdaku0NIrYPiQkooyaoSIMbjsJmHc6USkaxEcjVGKAYu/IEDBgsn2xSpGINTMLcbw6NCyVp0mZGtsLfsLo4YnOt4w5KZ3SzLxhmqM1XPik8oyaybKjJAqMG4e1xp/XBRjz0YyLnT0CjK7jQ1koKsB9z79tXoleCHkn7P3gBNJHurfXfHcz8DaNDnSrnWu1bf8kVSR65rHgzeEaNioEnw5jrddSs6kTfIIJMqKKO3DTCOw+NtL4FmbY97pVEzcKYKI13zyQe8sk1WQYelq/TM5D3XvoqMd7p2B/B0SrJxg==
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s2048; d=yahoo.com.au; b=Gkhk/ntoZxf2QPTlIR+sV73PyUkDne1nb+vYqGJ3K3+ThmdZESHb4R7Zc97+imZFo5nT/5QinOMuvmuvTIURwzMg/CpaRrdH7nMjC/UvGQKmIFXzNd7wq7eeJSWuPCv4K/2ZWeFVrE6L/kw/pkFnTPyy6f51E7wHA8FmLszPS7gmKtSGLSPe/kjWNMu6r8dev7KIeR3sJhYz2Gg+dBBduVTZhNXo/B/ekZu1RfWlmjJdEoryTcz1o3ARrUv7m3+l8enG//O9rHXqEFV+UVQegOW2RZWqBSSR3gycbjKg+epyCa9q2rGO10zodSquiRCE86UDvhQspMDLlil/GcrZbA==;
- Organization: Bah Humbug
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
I had a go at a generic memoize to wrap functions, including
possibly anonymous functions. It started as a way to write a
few recurrences in a simple-minded way, then got a bit carried
away. The cutest bit is that because it can be applied to an
existing function you can experiment with memory vs time for
possibly re-used values.
http://user42.tuxfamily.org/pari-memoize/index.html
- Follow-Ups:
- Re: memoize.gp
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>