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

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

[Octave-bug-tracker] [bug #57185] svd returns inconsistent eigenvalues


From: Muhali
Subject: [Octave-bug-tracker] [bug #57185] svd returns inconsistent eigenvalues
Date: Thu, 7 Nov 2019 06:19:09 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0

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

                 Summary: svd returns inconsistent eigenvalues
                 Project: GNU Octave
            Submitted by: muhali
            Submitted on: Thu 07 Nov 2019 03:19:07 AM PST
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:


x = randn(10, 5) ;
y = randn(10, 5) ;
z = complex(x, y) ;

[~, Dr] = svd(x) ; diag(Dr)
svd(x)
[~, Dc] = svd(z) ; diag(Dc)
svd(z)

isreal(Dr)
isreal(Dc)


This shows that in the complex case, the ordering depends on having explicit
output (Dz) or not. This is inconsistent and also different from Matlab.

svd should also return real and not complex eigenvalues.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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