|
From: David B. <Dav...@mo...> - 2006-04-27 08:43:35
|
Thomas Weber wrote:
>Hi,
>
>isequal in Octave 2.9.5 can't handle galois fields, therefore
> comms('test')
>fails:
>
>octave:2> poly1 = gf([2,4,5,1],3);
>octave:3> isequal(poly1, poly1)
>error: find: wrong type argument `galois'
>error: evaluating assignment expression near line 139, column 11
>error: evaluating if command near line 136, column 5
>error: evaluating if command near line 52, column 3
>error: called from `__isequal__' in file
>`/usr/share/octave/2.9.5/m/general/__isequal__.m'
>error: evaluating assignment expression near line 28, column 12
>error: evaluating if command near line 27, column 3
>error: called from `isequal' in file
>`/usr/share/octave/2.9.5/m/general/isequal.m'
>
>Regards
> Thomas
>
>
>
Ok, I don't see a simple way of adapting __isequal__.m to work with
galois fields in a generic way. The fix will be to add an overload
function for isequal for galois fields and use dispatch to map it to
isequal. I add the attached function to octave-forge in the main/comms
directory..
D.
--
David Bateman Dav...@mo...
Motorola Labs - Paris +33 1 69 35 48 04 (Ph)
Parc Les Algorithmes, Commune de St Aubin +33 6 72 01 06 33 (Mob)
91193 Gif-Sur-Yvette FRANCE +33 1 69 35 77 01 (Fax)
The information contained in this communication has been classified as:
[x] General Business Information
[ ] Motorola Internal Use Only
[ ] Motorola Confidential Proprietary
|