bugGNU Octave - Bugs: bug #38936, Wrong result of numel() for sparse...

 
 

bug #38936: Wrong result of numel() for sparse matrices

Submitted by:  None
Submitted on:  Wed 08 May 2013 01:26:28 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: David Bateman <dbateman>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.4
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Thu 20 Jun 2013 12:36:12 AM UTC, comment #2:

As 1e12 is larger than sizemax() for 32-bit indexing as Jordi says in the thread he posted numel will always be wrong. I've push a changeset

http://hg.savannah.gnu.org/hgweb/octave/rev/8fce0ed4894a

that ensures that this is an error

David Bateman <dbateman>
Project MemberIn charge of this item.
Thu 09 May 2013 07:38:30 PM UTC, comment #1:

Confirmed.

Also see this discussion: http://octave.1599824.n4.nabble.com/Re-Pkg-octave-devel-Bug-706376-octave-sparse-matrix-n-2-16-tp4652439.html

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Wed 08 May 2013 01:26:28 PM UTC, original submission:

Executing the command

returns -727379968 instead of 1e12. However, the following command produces the correct result:

I could verify this behaviour using octave 3.4.3 (CentOS release 6.4 (final), kernel 2.6.32-358.2.1.el6.x86_64) and octave 3.6.4 (Ubuntu 13.04, kernel 3.8.0-19-generic).

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 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
    Thu 20 Jun 2013 12:36:12 AM UTCdbatemanStatusConfirmed=>Fixed
      Assigned toNone=>dbateman
      Open/ClosedOpen=>Closed
    Thu 09 May 2013 07:38:30 PM UTCjordighStatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup