From: David B. <Dav...@mo...> - 2004-09-15 08:05:46
|
According to Josep Mon=E9s i Teixidor <jm...@pu...> (on 09/14/04= ): > I've tested your patch on Octave CVS version from last friday (or > thursday). It works for nan but I still have problems with test > functions because of substraction not being implemented actually, but > perhaps you already know this issue because I thing you and John were > discussing how to implement operations on 64 bits types: >=20 > octave:9> uint64(1)-uint64(1) > error: binary operator `-' not implemented for `uint64 scalar' by > `uint64 scalar' operations > error: evaluating binary operator `-' near line 9, column 10 >=20 > octave:9> uint64(1)+uint64(1) > error: binary operator `+' not implemented for `uint64 scalar' by > `uint64 scalar' operations > error: evaluating binary operator `+' near line 9, column 10 Yes, they aren't implemented in octave or matlab R14 for that matter. > octave:9> assert(uint64(1),uint64(1)) > error: binary operator `-' not implemented for `uint64 scalar' by > `uint64 scalar' operations > error: evaluating binary operator `-' near line 133, column 17 > error: evaluating argument list element number 1 > error: evaluating argument list element number 1 > error: evaluating assignment expression near line 133, column 6 > error: evaluating if command near line 132, column 7 > error: evaluating if command near line 120, column 5 > error: evaluating if command near line 58, column 3 > error: called from `assert' in file > `/home/josep/source/cvs/cvs.sourceforge.net/octave-forge/extra/testfun/= assert.m' Ok this is a bug in assert.m, as it shouldn't try to do a subtraction when the tolerance is zero. Rather it should do a compare.... I'd=20 suggest a patch like, that attached. I haven't committed it however as its upto Paul to decide what he whats done in this case. Cheers David >=20 >=20 >=20 > I'll have to setup a cron job to compile Octave and octave-forge every > night :) >=20 > Regards >=20 > --=20 > Josep Mon=E9s i Teixidor > Clau GnuPG: gpg --recv-keys 80E85CC4 --=20 David Bateman Dav...@mo... Motorola CRM +33 1 69 35 48 04 (Ph)=20 Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax)=20 91193 Gif-Sur-Yvette FRANCE The information contained in this communication has been classified as:=20 [x] General Business Information=20 [ ] Motorola Internal Use Only=20 [ ] Motorola Confidential Proprietary |