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

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

[Octave-bug-tracker] [bug #66488] qr( sparse, 0) isn't equal to qr( spar


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #66488] qr( sparse, 0) isn't equal to qr( sparse, 'econ', 'vector')
Date: Fri, 29 Nov 2024 13:16:42 -0500 (EST)

Follow-up Comment #8, bug #66488 (group octave):

With Matlab R2024b:

>> [q,r,p] = qr(speye(3),'econ')

q =

  3×3 sparse double matrix (3 nonzeros)

   (1,1)        1
   (2,2)        1
   (3,3)        1


r =

  3×3 sparse double matrix (3 nonzeros)

   (1,1)        1
   (2,2)        1
   (3,3)        1


p =

  3×3 sparse double matrix (3 nonzeros)

   (1,1)        1
   (2,2)        1
   (3,3)        1

>> [q,r,p] = qr(eye(3),'econ')

q =

     1     0     0
     0     1     0
     0     0     1


r =

     1     0     0
     0     1     0
     0     0     1


p =

     1     0     0
     0     1     0
     0     0     1

>> 




    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

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