[Aldor-l] Aldor Problem
Ralf Hemmecke
ralf at hemmecke.de
Tue Sep 27 07:39:39 EDT 2005
Could you send a clearer bugreport. I don't have the file dfttest.as so
I cannot say anything.
Just one comment. If you use the library algebrad, then you should also
use aldord and the -DDEBUG switch. See section "Profiling and debugging"
in the "Algebra User Guide and Reference Manual"
http://www-sop.inria.fr/safir/WHOSWHO/Manuel.Bronstein/algebra/index.html
Usually, if code compiled against the debug version of the library gives
a correct result and compiled against the ordinary library returns
something wrong then it is an indication of a bug in the compiler itself.
Ralf
Akpodigha Filatei wrote:
>
>
> 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