bugGNU Octave - Bugs: bug #36368, complex diagonal matrix powers...

 
 

bug #36368: complex diagonal matrix powers read uninit memory

Submitted by:  None
Submitted on:  Wed 02 May 2012 05:48:06 AM UTC  
 
Category: NoneSeverity: 5 - Blocker
Priority: 7 - HighItem Group: Regression
Status: FixedAssigned to: Jordi Gutiérrez Hermoso <jordigh>
Originator Name: muslimOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 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.

 

Thu 03 May 2012 04:57:19 AM UTC, comment #4:

Patched in this changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/6250e1232c9c

This should be part of the 3.6.2 bugfix release that should happen very soon now.

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.
Thu 03 May 2012 12:42:48 AM UTC, comment #3:

Er, sorry, I mean, I'll push this to the stable branch.

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.
Thu 03 May 2012 12:38:06 AM UTC, comment #2:

I got a patch for this. DiagArray2<T>::operator() didn't have a non-const version. I'm running some tests, and I'll push this soon to the development branch.

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.
Wed 02 May 2012 06:10:41 AM UTC, comment #1:

I also see this behavior with the current development sources (both stable and default branches).

This appears to be a regression in going from 3.2.x to 3.4.x.

John W. Eaton <jwe>
Project Administrator
Wed 02 May 2012 05:48:06 AM UTC, original submission:

Hi,

When I running the code below, I get wrong answer.

A=diag(exp(2pi1i*[0:2]/3))
A =

Diagonal Matrix

1.00000 + 0.00000i 0 0
0 -0.50000 + 0.86603i 0
0 0 -0.50000 - 0.86603i

But:

A^2
ans =

Diagonal Matrix

Columns 1 and 2:

6.4406e-247 + 5.3118e+006i 0
0 4.9279e+247 + 4.4528e+252i
0 0

Column 3:

0
0
4.4600e-086 + 1.7804e-306i

which is wrong( but A*A gets right)

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 jordigh (Posted a comment)
  • -unavailable- added by melrobin
  • -unavailable- added by jwe (Posted a comment)
  • -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 12 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 03 May 2012 04:57:19 AM UTCjordighStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Thu 03 May 2012 12:51:27 AM UTCjordighSummarymatrix operation incorrect=>complex diagonal matrix powers read uninit memory
    Thu 03 May 2012 12:38:06 AM UTCjordighStatusConfirmed=>In Progress
      Assigned toNone=>jordigh
    Wed 02 May 2012 03:39:04 PM UTCmelrobinCarbon-Copy-=>Added melrobin
    Wed 02 May 2012 06:10:41 AM UTCjweSeverity3 - Normal=>5 - Blocker
      Priority5 - Normal=>7 - High
      Item GroupIncorrect Result=>Regression
      StatusNone=>Confirmed
      Release3.6.1=>dev
      Operating SystemMicrosoft Windows=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1