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

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

[Octave-bug-tracker] [bug #45944] eig(X, 'nobalance') does not exist in


From: anonymous
Subject: [Octave-bug-tracker] [bug #45944] eig(X, 'nobalance') does not exist in Octave vs. Matlab
Date: Sat, 6 Mar 2021 14:04:29 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0

Follow-up Comment #1, bug #45944 (project octave):

As of

version
ans = 6.0.90

this is still true.

When doing a doc eig
It states there is an option for "nobalance"

The flag balanceOption can be one of: 
"balance" (default)
Preliminary balancing is on. 
"nobalance"
Disables preliminary balancing. 


Following slide 6 from:
https://www.inf.ed.ac.uk/teaching/courses/cfcs1/lectures/cfcs_l14.pdf


A = [1 3; 4 2];
[X,L]=eig(A)
X =

  -0.7071  -0.6000
   0.7071  -0.8000

L =

Diagonal Matrix

  -2   0
   0   5


Now testing with "nobalance"

[X,L]=eig(A,'nobalance');disp(X)
  -0.7071  -0.6000
   0.7071  -0.8000


The expected answer

[X,L]=eig(A,'nobalance');disp(X)
  -1.0000   -0.7500
   1.0000   -1.0000 


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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