[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mixed type operations in Octave
From: |
John W. Eaton |
Subject: |
Re: mixed type operations in Octave |
Date: |
Tue, 09 Sep 2008 15:08:21 -0400 |
On 9-Sep-2008, Jaroslav Hajek wrote:
| On Tue, Sep 9, 2008 at 4:07 PM, John W. Eaton <address@hidden> wrote:
| > On 9-Sep-2008, Jaroslav Hajek wrote:
| >
| > | What do you mean? int32(1) & int8(2) works, of course, but it does not
| > | do bitwise operation.
| >
| > It works for you? This is what I see with the latest sources:
| >
| > octave:1> int32(1) & int8(2)
| > error: binary operator `&' not implemented for `int32 scalar' by `int8
scalar' operations
| > octave:1> int32(1) | int8(2)
| > error: binary operator `|' not implemented for `int32 scalar' by `int8
scalar' operations
| >
| > jwe
| >
|
| Sorry, I meant it works in Matlab. But it does a boolean operation.
Right, that's what it should do since in Matlab the | and & operators
work on matrix elements, not bits.
jwe
mixed type operations in Octave, John W. Eaton, 2008/09/08
- Re: mixed type operations in Octave, Jaroslav Hajek, 2008/09/09
- Re: mixed type operations in Octave, John W. Eaton, 2008/09/09
- Re: mixed type operations in Octave, Jaroslav Hajek, 2008/09/09
- Re: mixed type operations in Octave, John W. Eaton, 2008/09/09
- Re: mixed type operations in Octave, Jaroslav Hajek, 2008/09/10
- Re: mixed type operations in Octave, John W. Eaton, 2008/09/10
- Re: mixed type operations in Octave, Jaroslav Hajek, 2008/09/10