bugGNU Octave - Bugs: bug #56153, Feature Request: any/all could...

 
 

bug #56153: Feature Request: any/all could accept a vector for DIM argument

Submitter:  None
Submitted:  Wed 17 Apr 2019 04:35:16 PM UTC
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  buchholz Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Wed 17 Apr 2019 04:51:16 PM UTC, comment #1: 

First, version 4.0.3 is ancient and no longer supported.  You should upgrade to the latest stable version 5.1.0 as there have been many positive changes.

But, that won't address the particular issue you identified.  I think the capability for the dimension argument to be a vector is a relatively new addition to Matlab.  I have changed the issue report to be a request to implement this feature in Octave.

Rik <rik5>
Project Administrator
Wed 17 Apr 2019 04:35:16 PM UTC, original submission:  

The following code

a = reshape(1:36, 6, 6);
any(a>5, [1,2])
ans =

   1   1   1   1   1   1

(analogue with all)

ignores the vector status of the dim argument.

I would expect either
- octave to complain, that the argument must be a scalar, or
- do the operation over all of the indicated dimensions (as would matlab (2018b) do), i.e. the result would be 1 in this case.

(I would prefer the second solution, it would not only reduce incompabilities, but also be more useful.)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only project members can vote.

     

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-04-17 rik5 Item GroupMissed Error or Warning Feature Request
        StatusNone Confirmed
        Release4.0.3 dev
        SummaryVector status of argument to any/all ignored Feature Request: any/all could accept a vector for DIM argument

    Back to the top


    Powered by Savane 3.9