Karim BELABAS on Tue, 18 Feb 2003 00:10:51 +0100 (MET) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Object too big |
On 14 Feb 2003, Xavier-Francois Roblot wrote: > I'm getting the following error: > > *** object too big, length can't fit in a codeword > > when I want to create a vector of large size. Now, I'd like to know what > is the maximal length I can ask for. Looking at the code, I find that > this maximal length is related to LGBITS which is defined by: > > #define LGBITS ((1UL<<LGnumBITS)-1) > > and there I'm lost. > > I would very grateful if anyone could help figure out what this value > is. It's defined right above (LGnumBITS is 24 on 32-bit machine), and there a huge comment there to explain the parameters defining the codeword structure. You could make LGnumBITS slightly larger in your binary (at most 26 on 32 bit machine). But why not break the vector into smaller parts ? Btw, have a look at the FAQ: http://www.math.u-psud.fr/~belabas/pari/doc/faq.html#biggerlist Karim. -- Karim Belabas Tel: (+33) (0)1 69 15 57 48 Dép. de Mathématiques, Bât. 425 Fax: (+33) (0)1 69 15 60 19 Université Paris-Sud Email: Karim.Belabas@math.u-psud.fr F-91405 Orsay (France) http://www.math.u-psud.fr/~belabas/ -- PARI/GP Home Page: http://www.parigp-home.de/