How to use eig with the nobalance option as in MATLAB?

eigenvalue, eigenvector, matlab, numpy, python

Solution

NumPy can't currently do this. As horchler said, there has been an open ticket open for this for a while now. It is, however, possible to do it using external libraries. Here I write up how to do it using the Python bindings to the NAG library

http://www.walkingrandomly.com/?p=5303

It should be possible to do something similar using any interface to LAPACK such as the Intel MKL etc.

Problem

In MATLAB I can issue the command: ``` [X,L] = eig(A,'nobalance'); ``` In order to compute the eigenvalues without the balance option. What is the equivalent command in NumPy? When I run the NumPy version of eig, it does not produce the same result as the MATLAB result with nobalance turned on.

Original source