bugGNU Octave - Bugs: bug #63155, qr() returns a full matrix for Q...

 
 

bug #63155: qr() returns a full matrix for Q output for sparse input

Submitter:  Rik <rik5>
Submitted:  Wed 05 Oct 2022 12:24:02 AM UTC
   
 
Category:  Octave Function Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 05 Oct 2022 12:24:02 AM UTC, original submission:  

Sample code:


[Q,R] = qr (sparse (magic (3)))
Q =

  -0.847998   0.522292   0.090055
  -0.317999  -0.365468  -0.874820
  -0.423999  -0.770483   0.476005

R =

Compressed Column Sparse (rows = 3, cols = 3, nnz = 6 [67%])

  (1, 1) -> -9.4340
  (1, 2) -> -6.2540
  (2, 2) -> -8.2394
  (1, 3) -> -8.1620
  (2, 3) -> -0.9655
  (3, 3) -> -4.6314


Matlab returns sparse matrices for both Q and R when the input is sparse.

Rik <rik5>
Group administrator

 

(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 (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code