Find eigenvalues of Complex valued matrix in python
<p>I need to find the eigenvvalues of of this matrix, and similar such matrices (spaces denote separators):</p>

<pre><code>[[1.0000 -0.7071*I 0 -0.7071*I 0 0 0 0 0]    
 [0.7071*I 0.5000 -0.7071*I 0 -0.70710*I 0 0 0 0]    
 [0 0.7071*I 1.0000 0 0 -0.7071*I 0 0 0]   
 [0.7071*I 0 0 0.5000 -0.7071*I 0 -0.7071*I 0 0]    
 [0 0.7071*I 0 0.7071*I 0 -0.7071*I 0 -0.7071*I 0]    
 [0 0 0.7071*I 0 0.7071*I 0.5000 0 0 -0.7071*I]    
 [0 0 0 0.7071*I 0 0 1.0000 -0.7071*I 0]    
 [0 0 0 0 0.7071*I 0 0.7071*I 0.5000 -0.7071*I]    
 [0 0 0 0 0 0.7071*I 0 0.7071*I 1.000]]
</code></pre>

<p><strong>Error:</strong>
<code>numpy.linalg.eigvalsh()</code> gives error "can't convert complex to float".</p>

<p>What could be the reason, and how do I find eigenvalues?</p>

<p>In numpy you get this for free</p>

<pre><code>import numpy as np

matrix = np.array([[1+1j,0+1j],[0+1j,1+1j]])
eingenvalues,eigenvectors=np.linalg.eig(matrix)
</code></pre>

<p>will give you both, eigenvalues and corresponding eigenvectosr</p>

<p>If you are really only interested in the eigen values you can use</p>

<pre><code>eingenvalues=np.linalg.eigvals(matrix)
</code></pre>

python numpy matrix linear-algebra eigenvalue