[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49019] some function fail when DIM>=3 and siz
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #49019] some function fail when DIM>=3 and size(X, DIM)==1 |
Date: |
Wed, 7 Sep 2016 15:00:36 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |
Update of bug #49019 (project octave):
Status: None => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
If a function accepts a dimension greater than ndims, then it is probably done
for Matlab compatibility.
Indeed, for example, Matlab's help for the max function states
> max returns A if dim is greater than ndims(A).
This is not the case for most functions and cannot really be solved in a
general way. Since all arrays have ndims >= 2, 1 and 2 will always work, but
dim >= 3 will only work if the array actually has ndims >= dim.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49019>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/