bugGNU Octave - Bugs: bug #37321, isequal doesn't work for sparse...

 
 

bug #37321: isequal doesn't work for sparse matrcies

Submitted by:  Jordi Gutiérrez Hermoso <jordigh>
Submitted on:  Mon 10 Sep 2012 09:44:50 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: Jordi Gutiérrez Hermoso <jordigh>
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Mon 19 Aug 2013 06:10:57 PM UTC, comment #3:

Thanks, pushed your patch, with minor modifications (changed "sparsematrix" to "sparse matrices" and added a space after the first line in the commit message):

http://hg.savannah.gnu.org/hgweb/octave/rev/79d4b6089968

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.
Mon 19 Aug 2013 10:50:53 AM UTC, comment #2:

Attached patch fixes this bug, hopefully without breaking something else :)

(file #28875)

Stefan Mahr <dac922>
Tue 11 Sep 2012 06:10:10 AM UTC, comment #1:

This looks like two bugs in one.

First, for the example you give, _isequal_ is computing

and getting the sparse(1,1) result. But

produces logical(1). So shouldn't the sparse version produce logical (sparse (1))? Then the second bug is that isequal should be returning a full matrix in this case instead of sparse.

John W. Eaton <jwe>
Project Administrator
Mon 10 Sep 2012 09:44:50 PM UTC, original submission:

This should produce 1, but instead it produces zero scalar sparse matrix:

I'll work on this later.

Jordi Gutiérrez Hermoso <jordigh>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #28875:  isequal_sparse.diff added by dac922 (3KiB - text/x-patch)

 

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 dac922 (Updated the item)
  • -unavailable- added by jwe (Posted a comment)
  • -unavailable- added by jordigh (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
    Wed 21 Aug 2013 03:43:30 AM UTCrik5StatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Mon 19 Aug 2013 10:50:53 AM UTCdac922Attached File-=>Added isequal_sparse.diff, #28875

    Back to the top


    Powered by Savane 3.1-cleanup1