[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62184] ind2sub behavior different in matlab a
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #62184] ind2sub behavior different in matlab and octave |
Date: |
Sat, 26 Mar 2022 18:13:35 -0400 (EDT) |
Update of bug #62184 (project octave):
Status: None => Confirmed
Release: 6.4.0 => dev
_______________________________________________________
Follow-up Comment #1:
This turns out to be way harder to fix than it looks. The code is in
liboctave/Array/Array-util.cc in function ind2sub (line 619).
The check for index out of range is done early, but eliminating the test is
not enough to get the function to be Matlab compatible. The dimension vector
needs to be temporarily re-sized which I can't figure out how to do in C++.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62184>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/