bugGNU Octave - Bugs: bug #63069, qr fails on empty sparse matrix,...

 
 

bug #63069: qr fails on empty sparse matrix, but succeeds on empty full matrix

Submitter:  Liang Tang <lt1234>
Submitted:  Fri 16 Sep 2022 10:41:15 PM UTC
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  lt1234 Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Wed 05 Oct 2022 11:29:47 AM UTC, comment #4: 

Rik, thanks.  Currently I work around this issue by proving a near-zero X0 in lsqnonneg call.  I will remove the workaround in the next release. 

Liang Tang <lt1234>
Wed 05 Oct 2022 12:19:26 AM UTC, comment #3: 

I pushed a changeset for this here (http://hg.savannah.gnu.org/hgweb/octave/rev/fa4bb329a51a).  Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Mon 19 Sep 2022 10:29:31 AM UTC, comment #2: 

Thanks. 

Liang Tang <lt1234>
Mon 19 Sep 2022 05:08:34 AM UTC, comment #1: 

Re-titling to reflect the underlying problem.

This code works

qr ([])

This code fails

qr (sparse ([]))

Rik <rik5>
Project Administrator
Fri 16 Sep 2022 10:41:15 PM UTC, original submission:  

Error from using lsqnonneg with sparse matrix input(s). 

>> [X] = lsqnonneg (sparse([1 2;2 1]), [1 0]');

error: matrix dimension with negative or zero size
error: called from
    lsqnonneg at line 122 column 12

No error for full matrix inputs:

>> [X] = lsqnonneg (full([1 2;2 1]), [1 0]');
>>


Thanks. 

Liang Tang <lt1234>

 

(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 lt1234 (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 project members can vote.

     

     

     

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-10-05 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2022-09-19 rik5 StatusNone Confirmed
        Release7.1.0 dev
        Operating SystemMicrosoft Windows Any
        Summarylsqnonneg and sparse matrix compatibility qr fails on empty sparse matrix, but succeeds on empty full matrix

    Back to the top


    Powered by Savane 3.9