bugGNU Octave - Bugs: bug #36031, NaN norm of a sparse matrix

 
 

bug #36031: NaN norm of a sparse matrix

Submitter:  Marco Caliari <caliari>
Submitted:  Thu 29 Mar 2012 08:10:01 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 04 Apr 2012 03:40:43 AM UTC, comment #3: 

I committed your fix in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/c4ed0fdf2b62).  Closing bug.

Rik <rik5>
Group administrator
Fri 30 Mar 2012 09:18:06 AM UTC, comment #2: 

The fix is to replace


RR lambda = 0, mu = 0;


(line 418 of oct-norm.cc) with


RR lambda = 0, mu = 1;


About the changelog,


Fix initialization in Higham's method for norm estimate (bug #36031)

* oct-norm.cc (***): initialize mu to 1.


I don't understand what to put in *. Maybe just higham?

Marco

Marco Caliari <caliari>
Group Member
Fri 30 Mar 2012 12:27:42 AM UTC, comment #1: 

Confirmed on a recent tip (3/29/12).

Rik <rik5>
Group administrator
Thu 29 Mar 2012 08:10:01 AM UTC, original submission:  

Dear all,

I found the following


B=spalloc(2,2,1);,B(2,1)=1;,norm(B),norm(full(B))
ans = NaN
ans = 1


This bug is present at least since 3.2.4.

Cheers,

Marco

Marco Caliari <caliari>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by caliari (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-04 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2012-03-30 rik5 StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code