|
| From: | Marco Caliari |
| Subject: | [Octave-bug-tracker] [bug #52593] qr(A, 'matrix') and qr(A, 'vector') return the wrong result with a tall skinny matrix |
| Date: | Thu, 7 Dec 2017 03:42:53 -0500 (EST) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 |
Follow-up Comment #7, bug #52593 (project octave):
@Rik: it works for me.
@Joseph: in case you want to stay with the stable branch, you can do
someething like
A = [-3.6 0 9.72;3.4 1.9 8.67;3.8 1.7 0;-1.6 4 0;-1.6 4 0];
[Q, R, P] = qr(A);
p = find (P == 1)' - (0:2) * 3
Maybe you already found even a better way.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52593>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |