Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Polynomial too big for FFT" error on NTL

I'm trying to perform a multiplication of polynomials of degree 4096 using ZZ_pEX class from NTL. However, it returns the error "Polynomial too big for FFT", and I couldn't find a way to make it works (or even something that could help on NTL's documentation) but a comment in a slide saying that it can be fix (without saying how!).

Did anyone found a fix for this?

like image 229
Pedro Alves Avatar asked Jul 10 '15 16:07

Pedro Alves


1 Answers

You have to re-compile NTL with GMP, that provides the GNU Multiprecision number package library routines. When it seems to be appropriate, this package uses very beautiful hacks, e.g. FFTs, for bignum arithmetic.

Here, below "Building and using NTL with GMP" are the detailed steps you need to follow in order to compile NTL with GMP: http://www.shoup.net/ntl/doc/tour-gmp.html

Have fun!

like image 113
Kuno Avatar answered Oct 07 '22 03:10

Kuno