bugGNU Octave - Bugs: bug #36741, Different result is obtained with...

 
 

bug #36741: Different result is obtained with full and sparse matrices

Submitted by:  None
Submitted on:  Wed 27 Jun 2012 05:31:17 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: David Bateman <dbateman>
Originator Name: Gyorgy HexnerOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.2
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.

 

Sat 22 Jun 2013 10:19:28 AM UTC, comment #4:

This bug is also fixed by

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

D.

David Bateman <dbateman>
Project MemberIn charge of this item.
Thu 14 Mar 2013 06:49:01 PM UTC, comment #3:

It looks like sparse is checking the orientation of the index vector, rather than recognizing that the vector is in the row position and so must produce a row vector output.

Sample Code:

Rik <rik5>
Project Administrator
Wed 27 Jun 2012 07:43:21 PM UTC, comment #2:

It seems to give the correct answer for other cases that I checked.

Gyorgy Hexner

Anonymous
Wed 27 Jun 2012 05:43:52 PM UTC, comment #1:

Confirmed. This seems like a rather weird corner case, though. Does it only happen for scalars stored as sparse matrices?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Wed 27 Jun 2012 05:31:17 PM UTC, original submission:

+verbatim
##
##script to demostrate bug
##

xf = 1;
xs = sparse(xf);

##with full matrix get 2 x 1 matrix
xf([1 1],1)

##but with same sparse matrix get 1 x 2 matrix
xs([1 1], 1)
-verbatim

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 dbateman (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by jordigh (Posted a comment)
  •  

    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
    Sat 22 Jun 2013 10:19:28 AM UTCdbatemanStatusConfirmed=>Fixed
      Assigned toNone=>dbateman
      Open/ClosedOpen=>Closed
    Wed 27 Jun 2012 05:43:52 PM UTCjordighStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup1