[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65261] inconsistent index
From: |
John W. Eaton |
Subject: |
[Octave-bug-tracker] [bug #65261] inconsistent index |
Date: |
Mon, 5 Feb 2024 20:26:46 -0500 (EST) |
Update of bug#65261 (group octave):
Category: Coding Style and Maintenance => Octave Function
Item Group: Incorrect Result => Documentation
_______________________________________________________
Follow-up Comment #1:
The way this works in Octave is required for compatibility with documented
Matlab behavior.
Octave's documentation for the size function covers the case of the number of
DIM arguments is less than the number of dimensions of the array, but not the
case of the number of DIM arguments greater than the number of dimensions of
the array. That should be fixed.
If you want to work with an N-dimensional empty array with all zero
dimensions, try starting with something like "zeros (0, 0, 0)" or "zeros
(zeros (1, N))" instead of [].
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65261>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/