[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
int8(0) == int16(0) [ was Re: int8(0)==0 ? ]
From: |
John W. Eaton |
Subject: |
int8(0) == int16(0) [ was Re: int8(0)==0 ? ] |
Date: |
Fri, 3 Sep 2004 21:16:06 -0400 |
On 3-Sep-2004, Josep Monés i Teixidor <address@hidden> wrote:
| I've tested now int8(0) == int16(0) and isequal(int8(0),int16(0)) and
| these don't work. From documentation, I believe that MATLAB answers 1 to
| both.
|
|
| octave:164> int8(0)==int16(0)
| error: binary operator `==' not implemented for `int8 scalar' by `int16
| scalar' operations
| octave:164> isequal(int8(0),int16(0))
| error: can't perform indexing operations for int8 scalar type
I've just checked in a set of changes that makes these (and many other
similar mixed-type) operations work as you would expect.
Thanks,
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------