[Aldor-l] Aldor Problem
Akpodigha Filatei
afilatei at scl.csd.uwo.ca
Mon Sep 26 22:44:03 EDT 2005
Hi All,
The same piece of aldor code when compiled with the -l algebra or -l
algebrad library flags give different results. The result from algebrad
is correct but that from algebra is wrong. Any of you encountered this in
the past? Any known fix? Compiler version is 1.0.3 with latest
libalgebra.
e.g
[afilatei at medium FFT]$ aldor -lalgebrad -laldor -Fx dfttest.as
[afilatei at medium FFT]$ ./dfttest
dft! w shf [5 61394 513 53234 65534 4145 65026 12305 ] <--- correct
result
[afilatei at medium FFT]$ aldor -lalgebra -laldor -Fx dfttest.as
[afilatei at medium FFT]$ ./dfttest
dft! w shf [5 57298 256 53217 65534 8241 65281 12320 ] <--- wrong result
The package was defined thus:
FFTMultiplicationPackage(K:Field,U:UnivariatePolynomialAlgebra(K)): with {
If the function with the problem is written as a standalone it gives
correct results in both cases. So, I am about to suspect either of
"Field" or "UnivariatePolynomialAlgebra" implementation in libalgebra.
What say any of you?
More info: I have already implemented the same code in C++ (NTL)
successfully which gives me additional reason to believe that the code
might be correct.
Thanks
Filatei
More information about the Aldor-l
mailing list