擅长:python、mysql、java
<p>如果您正在寻找对应于一个特征值的一个特征向量,那么使用<a href="http://docs.scipy.org/doc/scipy/reference/sparse.linalg.html#matrix-factorizations" rel="nofollow">scipy.sparse.linalg implementation of the eig function</a>可能会更有效。
它允许查找固定数量的特征向量,并围绕特定值移动搜索。例如,您可以:</p>
<pre><code>values, vectors = scipy.sparse.linalg.eigs(P, k=1, sigma=1)
</code></pre>