bugGNU Octave - Bugs: bug #29623, compatbility problem with matlab...

 
 

bug #29623: compatbility problem with matlab for scalor product between complex vector

Submitter:  None
Submitted:  Wed 21 Apr 2010 12:14:03 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  Cristian Toraci Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.2.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 22 Apr 2010 01:16:37 PM UTC, comment #2: 
David Bateman <dbateman>
Group Member
Wed 21 Apr 2010 04:07:21 PM UTC, comment #1: 

Your sample code produces the same result as Matlab on a recent development version of the code. 

Could you test a newer release of Octave such as 3.2.4 or compile directly from the Mercurial sources and report back.

Rik <rik5>
Group administrator
Wed 21 Apr 2010 12:14:03 PM UTC, original submission:  

Hi,

I found the following compatibility issue.

The result of scalar product between complex row vectors or between complex column vectors in octave is the complex conjugate of the matlab result.
for instance the following instructions

a = [2-i; 1+i];
b = [-1-i; -1+i];
a'*b

in octave give the result

ans = -1 + 1i

but in matlabe give

ans =

  -1.0000 - 1.0000i

The same holds using column vectors and a*b'

Is it something I get wrong or a bug?

Thank you

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 dbateman (Posted a comment)
  • -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 group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-04-22 dbateman Open/ClosedOpen Closed
    2010-04-21 rik5 StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code