bugGNU Octave - Bugs: bug #54143, Why can't issorted() work on...

 
 

bug #54143: Why can't issorted() work on matrices?

Submitted by:  Dan Sebald <sebald>
Submitted on:  Mon 18 Jun 2018 07:44:17 PM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 19 Jun 2018 05:14:48 AM UTC, comment #3:

Just to test, I commented out the test for vectors in issorted in data.cc. Octave compiles and runs fine, but issorted seems to always return 0 then for matrices. Internally, it seems that

so the whole thing looks like a vector to issorted.

Rik <rik5>
Project Administrator
Tue 19 Jun 2018 01:30:51 AM UTC, comment #2:

Also, liboctave/array/Array.h which is the basis for all of the ND-Array and Matrix classes has an issorted member function.

Rik <rik5>
Project Administrator
Mon 18 Jun 2018 10:23:47 PM UTC, comment #1:

Yeah, this doesn't really make sense. Consider Matlab's description of the issorted function (http://www.mathworks.com/help/matlab/ref/issorted.html).

They seem to be able to do it, we should too.

Rik <rik5>
Project Administrator
Mon 18 Jun 2018 07:44:17 PM UTC, original submission:

The sort() function works on matrices, yet the issorted() function doesn't, e.g.,

One would think that issorted() is a counterpart to sort(), so it should work on whatever the sorted routine creates.

Dan Sebald <sebald>

 

(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 sebald (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-18 rik5 Item GroupNone => Matlab Compatibility
        StatusNone => Confirmed

    Back to the top


    Powered by Savane 3.3