Miklos Cserzo wrote:
The attached code compiles and runs on the attached sample input file but the result is incorrect. (Under IRIX 6.2, latest beta source.) The program supposed to calculate vector distance in a multi dimensional space. The same code is working fine with the 2.0 version on the same input file.
Can you just send the correct results? Of course, we could try to compute them ourselves, but I suppose you already have them handy.
Frank
-- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan
On Thu, 25 Mar 1999, Frank Heckenbach wrote:
Can you just send the correct results? Of course, we could try to compute them ourselves, but I suppose you already have them handy.
Sure, possibly I should do so at the first time.
More info: The program scans the input twice. First it computes the central point of the vector space (average vector) and than it supposed to report the distance of the individual vectors from it during the second scan. The first phase is correct with the beta version but in the second phase all the distances are 0. This is nonsense of course. I am not absolutely sure whether it is an arithmetic bug. It could be anything in the second 'repeat' cycle. Unfortunately the -g option is not able to produce binaries on IRIX 6.2 so I can not debug the code. However, the same code on the same input works fine if I use the 2.0 version of the compiler. By the way, is the -g works on different platforms?
Cheers,
miklos