[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59899] colon operator returns incompatible cl
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs |
Date: |
Mon, 18 Jan 2021 11:26:53 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 |
Follow-up Comment #2, bug #59899 (project octave):
In the current development version sources (what will become Octave 7) we
already support integer ranges. The changes were made in a series of
changesets around 5 months ago refactoring the way ranges are handled,
beginning with af361aea02e0.
The rules for deciding the result type are in the get_colon_op_type function
in ov.cc.
My understanding was that unless the colon operator is used with a class or
classdef object, then all arguments must be the same type or mixed with double
values. So if you have a range that is
uint8(10):-1:uint8(1)
the result type would be uint8. Is that not what Matlab does?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59899>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs, Hartmut, 2021/01/17
- [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs, Rik, 2021/01/18
- [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs,
John W. Eaton <=
- [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs, Rik, 2021/01/18
- [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs, Markus Mützel, 2021/01/18
- [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs, Rik, 2021/01/19
- [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs, John W. Eaton, 2021/01/19
- [Octave-bug-tracker] [bug #59899] colon operator returns incompatible class for integer inputs, Rik, 2021/01/19