bugGNU Octave - Bugs: bug #41612, pinv with tol fix for Diagonal...

 
 

bug #41612: pinv with tol fix for Diagonal Matrices

Submitted by:  None
Submitted on:  Sun 16 Feb 2014 07:55:29 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicateAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Sun 16 Feb 2014 10:30:36 PM UTC, comment #1:

would someone pls mark this as a dupe of bug #41546

@Anonymous: could you pls repost your comment there; thanks.

Felipe G. Nievinski <fgnievinski>
Sun 16 Feb 2014 07:55:29 PM UTC, original submission:

I just noticed a patch got sent to fix a bug I reported last week.

Awesome - thanks. However there's a small gotcha in the new code:

+ if (std::abs (elem (i, i)) < tol)
+ retval.elem (i, i) = 0.0;
+ else
retval.elem (i, i) = 1.0 / elem (i, i);

When tol==0 and elem(i,i)==0, the code will divide by zero. Otherwise looks good - sorry I couldn't find the original bug report so I had to re-post.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #30581:  bug_41612.diff added by eg123 (2KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by fgnievinski (Posted a comment)
  • -unavailable- added by eg123 (Updated 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
    Mon 17 Feb 2014 05:09:58 PM UTCphilipnienhuisStatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Sun 16 Feb 2014 09:21:29 PM UTCeg123Attached File-=>Added bug_41612.diff, #30581

    Back to the top


    Powered by Savane 3.1-cleanup1