help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Empty Matrix Comparison


From: Larry Gewax
Subject: Empty Matrix Comparison
Date: Thu, 31 Aug 2006 14:10:28 -0500
User-agent: Thunderbird 1.5.0.4 (X11/20060516)

Hello,

I'm having an issue comparing a matrix to an empty matrix.

In Octave 2.1.50 comparison to an empty matrix works:

GNU Octave, version 2.1.50 (i686-pc-linux-gnu).
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <address@hidden>.

octave:1> a = [1,1]
a =

 1  1

octave:2> a == []
ans = 0



In Octave 2.1.73 this is what I get:

GNU Octave, version 2.1.73 (i686-pc-linux-gnu).
Copyright (C) 2006 John W. Eaton.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <address@hidden> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

octave:1> a = [1,1]
a =

 1  1

octave:2> a == []
error: mx_el_eq: nonconformant arguments (op1 is 1x2, op2 is 0x0)
error: evaluating binary operator `==' near line 2, column 3

This is causing problems for older scripts that we have.
Could this be a compile issue or a new feature? Am I missing something that changed between versions?

Thanks,

Larry



reply via email to

[Prev in Thread] Current Thread [Next in Thread]