[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45143] "Infinite ranges" 1:Inf in Matlab, not
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #45143] "Infinite ranges" 1:Inf in Matlab, not allowed in Octave |
Date: |
Thu, 29 Dec 2016 17:07:09 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #9, bug #45143 (project octave):
I wanted to know whether ranges could be of different types.
In Octave, there is a range type that stores only the base, limit, and
increment as double precision floating point values.
I think that in Matlab, the range syntax is just a way of creating a matrix
and that there is no compact internal storage for them, though ranges used in
for loops may get special treatment.
It doesn't appear to me that the issue is fixed because
for i = 1:inf
...
end
"works" in Matlab by setting the upper limit of the loop range to the maximum
value for an int64 value. In Octave, it is still an error.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45143>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/