On 30/11/10 6:21 AM, so wrote:
I can understand Peter using Matrix just for example but still i have to say. A small vector/matrix with an extra field to memoize things perform likely worse than their usual implementations. That small extra field might just destroy any alignments, optimizations, which are scarier than the computation itself.
This may be true for this particular case, but has no bearing on the discussion in general.