[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63155] qr() returns a full matrix for Q outpu
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #63155] qr() returns a full matrix for Q output for sparse input |
Date: |
Tue, 4 Oct 2022 20:24:03 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?63155>
Summary: qr() returns a full matrix for Q output for sparse
input
Project: GNU Octave
Submitter: rik5
Submitted: Tue 04 Oct 2022 05:24:02 PM PDT
Category: Octave Function
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 04 Oct 2022 05:24:02 PM PDT By: Rik <rik5>
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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63155>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #63155] qr() returns a full matrix for Q output for sparse input,
Rik <=