[Top][All Lists]

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

mixed type operations in Octave

From: John W. Eaton
Subject: mixed type operations in Octave
Date: Mon, 08 Sep 2008 22:18:36 -0400

On  8-Sep-2008, Jaroslav Hajek wrote:

| Mixed-integer operations are another question. Currently, they're not
| allowed from within interpreter, but they're implemented in liboctave,
| using "convert to double, do OP, convert back".
| The question is, should they be allowed? And if yes, what meaning
| should they have? If no, they should probably be removed from
| liboctave, because they apparently consume a not quite negligible
| amount of compilation time.

Looking at the files like mx-i32-i16.cc, it seems that we only
instantiate mixed comparison and boolean ops.  These are used in the
interpreter, and are also allowed in Matlab.

However, we seem to be missing the | and & operators for mixed type
integer operations.  Oops.


reply via email to

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