|Bill Allombert on Fri, 14 Nov 2014 12:11:10 +0100|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: FpM_powu and gp2c-run|
On Fri, Nov 14, 2014 at 09:49:21AM +0100, Pedro Fortuny Ayuso wrote: > Hi, > > After all of yesterday's help, I can run my modular > power of matrices quite fast. Now I am trying to make > it even faster using gp2c-run. But to no avail: > > bash-4.3$ gp2c-run t.gp > Warning:t.gp:2: variable undeclared > s > Warning:t.gp:3: variable undeclared > r > GP/PARI CALCULATOR Version 2.5.5 (released) > i386 running darwin (x86-64/GMP-5.1.2 kernel) 64-bit version > compiled: Dec 3 2013, gcc-4.5.4 (MacPorts gcc45 4.5.4_6) > (readline not compiled in, extended help enabled) > > Copyright (C) 2000-2013 The PARI Group > > PARI/GP is free software, covered by the GNU General Public License, and comes WITHOUT ANY WARRANTY WHATSOEVER. > > Type ? for help, \q to quit. > Type ?12 for how to get moral (and possibly technical) support. > > parisize = 8000000, primelimit = 500509 > *** at top-level: install("FpM_powu"," > *** ^-------------------- > *** install: can't find symbol 'FpM_powu' in dynamic symbol table of process. > *** Break loop: type 'break' to go back to GP > break> > > However, the script (which I am attaching underneath) runs with > no problem under gp (read ("t.gp") runs it). > > -------- > cat < t.gp > > install(FpM_powu, GLG); > s=[1,2;3,4]; > r=FpM_powu(s, 32767, 65537) > > -------- > Any ideas? You are using gp 2.7.2, but gp2c-run is using gp 2.5.5 as you can see above, and gp 2.5.5 does not have FpM_powu. So you need to rebuild gp2c for gp 2.7.2 Cheers, Bill.