[Top][All Lists]

[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.



Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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