bugGNU Octave - Bugs: bug #32346, circshift of identity matrix...

 
 

bug #32346: circshift of identity matrix shifts in wrong direction

Submitted by:  None
Submitted on:  Thu 03 Feb 2011 11:58:22 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Tom TetzlaffOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.2.3
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 06 Feb 2011 10:54:45 AM UTC, comment #3:

I checked in the change as it seems right to me and fixes the reported problem.

http://hg.savannah.gnu.org/hgweb/octave/rev/ca1190196d26

John W. Eaton <jwe>
Project Administrator
Fri 04 Feb 2011 08:29:47 PM UTC, comment #2:

OK, I took another look and I'm attaching a proposed patch.

Jaroslav, will you please comment on this change?

(file #22606)

John W. Eaton <jwe>
Project Administrator
Fri 04 Feb 2011 06:50:09 AM UTC, comment #1:

The reason there is a difference is that in Octave, eye(3) creates a diagonal matrix object but [1,0,0;0,1,0;0,0,1] creates a full matrix. The diagonal matrix type provides lower memory use and improved speed for some operations, but you have uncovered a bug in the implementation.

I'm adding the author of the diagonal and permutation matrix objects to the CC list for this report.

Jaroslav, can you please take a look at this problem?

John W. Eaton <jwe>
Project Administrator
Thu 03 Feb 2011 11:58:22 PM UTC, original submission:

This gives different result (shifts in opposite direction) compared to octave 3.0 and matlab

Also, it shifts in the opposite direction from:
but, the input is just an explicit 3x3 identity matrix

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #22606:  diffs.txt added by jwe (1KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jwe
  • -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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 21 Feb 2011 12:30:35 AM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 04 Feb 2011 08:29:47 PM UTCjweAttached File-=>Added diffs.txt, #22606
    Fri 04 Feb 2011 06:50:10 AM UTCjweCarbon-Copy-=>Added highegg

    Back to the top


    Powered by Savane 3.1-cleanup1