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

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

[Octave-bug-tracker] [bug #64861] qr with single return value.


From: Liang Tang
Subject: [Octave-bug-tracker] [bug #64861] qr with single return value.
Date: Sun, 5 Nov 2023 14:53:00 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?64861>

                 Summary: qr with single return value.  
                   Group: GNU Octave
               Submitter: lt1234
               Submitted: Sun 05 Nov 2023 07:52:57 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: lt1234
        Originator Email: 
             Open/Closed: Open
                 Release: 8.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 05 Nov 2023 07:52:57 PM UTC By: Liang Tang <lt1234>
qr with a single return value is not compatible with matlab.  Thanks.  


Matlab: 

R = qr(A) returns the upper-triangular R factor of the QR decomposition A =
Q*R.

Octave 

If just a single return value is requested then it is either R, if A is
sparse, or X, such that 'R = triu (X)' if A is full.

I ran a simple example.  Two software follow their own documentation.  

A=[1 2 3];
[q r]=qr(A')
a=qr(A')
as=qr(sparse(A')), full(as)









    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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