bugGNU Octave - Bugs: bug #42764, squareform in statistics package...

 
 

bug #42764: squareform in statistics package returns column vector, Matlab returns row vector

Submitted by:  None
Submitted on:  Sun 13 Jul 2014 04:42:57 PM UTC  
 
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: nikolaas n. oosterhofOriginator Email: -unavailable-
Open/Closed: OpenRelease: 3.8.1
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sun 13 Jul 2014 04:42:57 PM UTC, original submission:

the squareform function (in the octaveforge statistics package) shows different behaviour in Matlab and Octave when using this function in the 'tovector' direction.

In octave (3.8.1 on linux, 3.8.0 on OSX):

>> squareform(1-eye(3),'tovector')

ans =

1
1
1

In matlab (R2012b on linux, R2013a on OSX):

>> squareform(1-eye(3),'tovector')


ans =

1 1 1

I expected the results to be the same for Matlab and Octave.

I'm not sure to what extent this really is a bug in the sense that is shows behaviour inconsistent with the documentation; neither Matlab's nor Octave's help say explicitly that the output is a row vector. The example given in the Matlab help does however show that the output in Matlab is a row vector.

Anonymous

 

(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 None (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 Jul 2014 01:06:32 AM UTCrik5Carbon-CopyRemoved 72865=>-
    Mon 14 Jul 2014 01:06:25 AM UTCrik5CategoryOctave Function=>Octave Forge Package
      SummaryOctave\'s squareform returns column vector, Matlab returns row vector=>squareform in statistics package returns column vector, Matlab returns row vector

    Back to the top


    Powered by Savane 3.1-cleanup