How to use the OO features of Octave

David Bateman David.Bateman at motorola.com
Tue Sep 23 10:28:05 CDT 2008


John W. Eaton wrote:
> On 23-Sep-2008, David Bateman wrote:
>
> | octave:14> ver
> | ----------------------------------------------------------------------
> | GNU Octave Version 3.1.51+
> | GNU Octave License: GNU General Public License
> | Operating System: Linux 2.6.22.19-laptop-2mdv #1 SMP Mon May 5 21:45:32 
> | EDT 2008 x86_64
> | ----------------------------------------------------------------------
> | 
> | So I'm use the tip as of yesterday. Maybe there is an issue of synchro 
> | between our repositories.. What was the change that addressed this?
>
> I don't know precisely which change it was, but it would have been
> related to the octave_call_stack mechanism in toplev.cc, and the way
> it is used in functions like Fclass.
>
> jwe
>
>   
Ok, I think I've found another bug. Attached is a toy galois field 
GF(2^M) class that duplicates some of the features of the equivalent 
octave-forge class. The subsref method has an issue in that

a = gf(0:3, 2);
a(2:end)

returns nothing. The issue is that in the subsref method the s.subs 
field is empty when it should contain (2:4). Doing

a(2:4)

however works correctly.

Regards
David




-- 
David Bateman                                David.Bateman at motorola.com
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: galois.tar.bz2
Type: application/x-bzip2
Size: 2233 bytes
Desc: not available
Url : https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20080923/178996b8/attachment.bin 


More information about the Octave-maintainers mailing list