octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #58944] [z, r, p]=qr(a, b) unexpectedly return


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #58944] [z, r, p]=qr(a, b) unexpectedly returns z as q instead of q' * b
Date: Thu, 14 Jan 2021 02:30:25 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 Edg/87.0.664.75

Follow-up Comment #5, bug #58944 (project octave):

Ah. Thank you. I misunderstood (and didn't find that explained in the help
text).

>> A = sparse(rand(3,2));
>> B = sparse(rand(3,1));
>> [C, R, E] = qr (A, B);
>> X = E*(R\C)
X =

  -0.1954
   0.4075

>> A\B
ans =

Compressed Column Sparse (rows = 2, cols = 1, nnz = 2 [100%])

  (1, 1) -> -0.1954
  (2, 1) -> 0.4075


That looks good to me.

Should we close this as fixed? Or keep it open to document that we now support
this syntax for `qr`?

What about the syntax with two full matrices as input and three output
arguments (which is also undocumented)? What does it return? Should that be
rejected?

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58944>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]