Karim Belabas on Thu, 19 Jan 2006 16:42:30 +0100


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

Re: Missing functions in CVS


* Ilya Zakharevich [2006-01-19 04:34]:
> On Wed, Jan 18, 2006 at 04:09:59PM +0100, Karim Belabas wrote:
> > 2) bl_prev() is required in dumpHeap in order to traverse the linked
> > list of PARI 'blocs' which are neither documented, nor accessible.
> > 
> > I can provide a public routine
> > 
> >   traverseheap( void (*f)(void *D, GEN x), void *data )
> > 
> > that would successively apply f(data, x) to each GEN x in the PARI heap,
> > starting from the most recent one.
> > 
> > Would that be suitable ?
> 
> Hard to be sure, but this looks very probable.

I have committed such a function to CVS, then re-implemented getheap() in 
terms of it. ( Cleaning up obsolete hackish code, which actually reported
a wrong result. )

Cheers,

    Karim.
-- 
Karim Belabas                  Tel: (+33) (0)5 40 00 26 17
Universite Bordeaux 1          Fax: (+33) (0)5 40 00 69 50
351, cours de la Liberation    http://www.math.u-bordeaux.fr/~belabas/
F-33405 Talence (France)       http://pari.math.u-bordeaux.fr/  [PARI/GP]