[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #38936] Wrong result of numel() for sparse mat
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #38936] Wrong result of numel() for sparse matrices |
Date: |
Wed, 08 May 2013 13:26:30 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 |
URL:
<http://savannah.gnu.org/bugs/?38936>
Summary: Wrong result of numel() for sparse matrices
Project: GNU Octave
Submitted by: None
Submitted on: Mi 08 Mai 2013 13:26:28 UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.6.4
Operating System: GNU/Linux
_______________________________________________________
Details:
Executing the command
numel(spalloc(1e6,1e6,0))
returns -727379968 instead of 1e12. However, the following command produces
the correct result:
prod(size(spalloc(1e6, 1e6)))
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).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?38936>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #38936] Wrong result of numel() for sparse matrices,
anonymous <=