[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36562] NaN/Inf behaviour unexpected in sparse
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #36562] NaN/Inf behaviour unexpected in sparse rdivide |
Date: |
Wed, 30 May 2012 15:12:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0 |
URL:
<http://savannah.gnu.org/bugs/?36562>
Summary: NaN/Inf behaviour unexpected in sparse rdivide
Project: GNU Octave
Submitted by: None
Submitted on: Wed 30 May 2012 03:12:51 PM UTC
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: Stuart Archibald
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 3.4.3
Operating System: GNU/Linux
_______________________________________________________
Details:
rdivide with NaN as first argument does not behave as expected with sparse
array as second argument. NaN/0 = NaN, which implies NaN rdivided by sparse
should give NaN's in the positions of the the zero pattern as well as NaN's in
the non-zero pattern.
Example
octave:1> rdivide(NaN,sparse([1,3],[1,3],[1,3]))
ans =
NaN -Inf -Inf
-Inf -Inf -Inf
-Inf -Inf NaN
I would expect the answer to be:
ans =
NaN NaN NaN
NaN NaN NaN
NaN NaN NaN
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 30 May 2012 03:12:51 PM UTC Name: sparseNaNbug.m Size: 68B By:
None
Script demonstrates the problem
<http://savannah.gnu.org/bugs/download.php?file_id=25956>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36562>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #36562] NaN/Inf behaviour unexpected in sparse rdivide,
anonymous <=