bugGNU Octave - Bugs: bug #52402, Incorrect size of the solution of...

 
 

bug #52402: Incorrect size of the solution of a singular system

Submitted by:  Marco Caliari <caliari>
Submitted on:  Tue 14 Nov 2017 08:42:37 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 15 Nov 2017 11:00:42 PM UTC, comment #3:

I checked in the fix here http://hg.savannah.gnu.org/hgweb/octave/rev/599fe61a5619.

I also added a file leftdiv.tst in the test/ directory to test some of these corner cases so we don't accidentally revert changes.

Rik <rik5>
Project Administrator
Tue 14 Nov 2017 09:04:50 AM UTC, comment #2:

I forgot the complex cases, new patch lssolve.diff2.

(file #42395)

Marco Caliari <caliari>
Project Member
Tue 14 Nov 2017 08:43:50 AM UTC, comment #1:

The patch wrt default.

(file #42394)

Marco Caliari <caliari>
Project Member
Tue 14 Nov 2017 08:42:37 AM UTC, original submission:

If you try

you get zeros (2) as a result. The problem is fixed by the attached patch. The new result ([0; 0]) is consistent with

and different from Matlab [0; Inf], but I think this is known.
In the function lssolve, I do not understand the need of the two variables nrhs and b_nc. I think one in enough.

Marco Caliari <caliari>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #42395:  lssolve.diff2 added by caliari (2KiB - application/octet-stream)
file #42394:  lssolve.diff added by caliari (1KiB - application/x-tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by caliari (Submitted 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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 15 Nov 2017 11:00:42 PM UTCrik5StatusPatch Submitted=>Fixed
      Open/ClosedOpen=>Closed
    Tue 14 Nov 2017 09:04:50 AM UTCcaliariAttached File-=>Added lssolve.diff2, #42395
    Tue 14 Nov 2017 08:43:50 AM UTCcaliariAttached File-=>Added lssolve.diff, #42394

    Back to the top


    Powered by Savane 3.1-cleanup1