[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #56152] Feature Request: all function should s
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #56152] Feature Request: all function should support "all" argument for Matlab compatibility |
Date: |
Wed, 17 Apr 2019 12:57:22 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Update of bug #56152 (project octave):
Item Group: Matlab Compatibility => Feature Request
Status: None => Confirmed
Release: 4.0.3 => dev
Summary: Argument 'all' for functions any and all not
available => Feature Request: all function should support "all" argument for
Matlab compatibility
_______________________________________________________
Follow-up Comment #1:
Matlab's own documentation says
B = any(A,'all') tests over all elements of A. This syntax is valid for
MATLABĀ® versions R2018b and later.
This is a very, very new addition to Matlab and it is unsurprising that Octave
does not implement it yet.
I've changed this report to be a feature request for the development branch of
Octave.
In the mean time, this code is equivalent and will work in Octave or in Matlab
versions before 2018b
B = any (A(:))
This code idiom of turning an ND-array in to a column vector is very common
and I don't think it hurts code readability.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?56152>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/