Another OOP issue
David Bateman
dbateman at dbateman.org
Tue Sep 23 18:08:17 CDT 2008
Ok, attached is the latest version of my toy galois field class (though
its already useful as is, but a duplicate of whats in octave-forge).
There are two versions of the isprimitive function, one that can be
called with matrix arguments and another with galois fields.
The version that takes a galois field manipulates the data and then
hands it off to the generic version. So @gf/isprimitive calls isprimitive.
If I run
addpath("/home/adb014/octave/galois")
isprimitive(gf([1,1,1]))
then everything is fine. However, on the second call the galois field
version of isprimitive is not called. and I get
isprimitive(gf([1,0,1]))
error: rem: complex arguments are not allowed
error: called from:
error:
/home/adb014/octave/code/octave-3.1-build/../octave-3.1-hg/scripts/general/rem.m
at line 61, column 5
error: /home/adb014/octave/galois/isprimitive.m at line 3, column 1
which is just rem complaining about getting a galois field.
So it seems that the fact that @gf/isprimitive calls isprimitive is
somehow removing the overloading of isprimitive. Any ideas?
Regards
David
PS: Sending through gmail to *@octave.org consistently has DNS failures.
Can we dump the arsehole who poisoned the octave DNS record.
--
David Bateman dbateman at dbateman.org
35 rue Gambetta +33 1 46 04 02 18 (Home)
92100 Boulogne-Billancourt FRANCE +33 6 72 01 06 33 (Mob)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: galois.tar.bz2
Type: application/x-bzip2
Size: 3240 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080924/6494bc63/attachment.bin
More information about the Octave-maintainers
mailing list