bugGNU Octave - Bugs: bug #42577, setdiff output dimension...

 
 

bug #42577: setdiff output dimension inconsistency

Submitted by:  Johan Löfberg <johanlofberg>
Submitted on:  Wed 18 Jun 2014 07:17:56 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 3.8.1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 18 Jun 2014 08:05:02 PM UTC, comment #1:

I fixed this up on the development branch in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/30d8501a857a). It will be a part of the 4.2 release. To get the fix sooner you can build from Mercurial sources or just copy the setdiff.m file from Mercurial into your distribution.

Rik <rik5>
Project Administrator
Wed 18 Jun 2014 07:17:56 AM UTC, original submission:

The logic on the dimension of the output from setdiff is not consistent with the behavior in MATLAB.

MATLAB behavior
1st input row second scalar: Output row
1st input column second scalar: Output column (*)

1st input row second row: Output row
1st input row second column: Output row

1st input column second row: Output row
1st input column second column: Output column

So, if some input is a row, output a row.

Octave follows these rules, except for the case (*)

Johan Löfberg <johanlofberg>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Jun 2014 08:05:02 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1