[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65008] ind2sub with indices lower than 0
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65008] ind2sub with indices lower than 0 |
Date: |
Mon, 11 Dec 2023 14:26:39 -0500 (EST) |
Follow-up Comment #2, bug#65008 (group octave):
I would imagine maybe it is supported because you could try to do general
location arithmetic using sums of those indices, but I haven't done it. What
i do notice looking at their public help is that while they do specify the
array size be restricted only to positive integers, they make no such
restriction on the index input:
Input Arguments
sz — Size of array
vector of positive integers
Size of array, specified as a vector of positive integers...
ind — Linear indices
scalar | vector | matrix | multidimensional array
Linear indices, specified as a scalar, vector, matrix, or multidimensional
array.
https://www.mathworks.com/help/matlab/ref/ind2sub.html
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65008>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/