bugGNU Octave - Bugs: bug #39644, delaunay matlab compatibility and...

 
 

bug #39644: delaunay matlab compatibility and input check problem, patch attached

Submitter:  Andreas Weber <andy1978>
Submitted:  Thu 01 Aug 2013 01:12:12 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 01 Aug 2013 02:36:09 PM UTC, comment #1: 

Thanks, I applied this without modification.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Thu 01 Aug 2013 01:12:12 PM UTC, original submission:  

Since change 7c4a6197e020 (http://hg.savannah.gnu.org/hgweb/octave/rev/7c4a6197e020)

+verbatim
a=[1 5 2; 5 6 7]; b=[5 7 8;1 2 3]; T=delaunay(a,b)
-verbatim-

stopped working. Matlab returns

T =
5 1 3
1 2 4
3 4 6
3 1 4


which is equivalent to what octave3.6 returned:

T =
3 5 1
4 2 1
4 3 1
4 3 6


Furthermore I think the input check for single matrix

  case 1
    if (! ismatrix (varargin{1}) && columns (varargin{1}) != 2)
        error ("delaunay: X must be a matrix with 2 columns");

should be
    if (! ismatrix (varargin{1}) || columns (varargin{1}) != 2)
        error ("delaunay: X must be a matrix with 2 columns");


Regards, Andy


Andreas Weber <andy1978>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #28734:  delaunay_39644.patch added by andy1978 (2KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by andy1978 (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 group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-08-01 jordigh StatusNone Fixed
        Open/ClosedOpen Closed
    2013-08-01 andy1978 Attached File- Added delaunay_39644.patch, #28734

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code