[Numpy-discussion] TypeError: 'module' object is not callable
andyjian430074 at gmail.com
Tue Jan 12 11:28:25 EST 2010
Thanks so so much.
Finally, it works.
>>> import scipy.sparse.linalg.eigen.arpack as arpack
['__builtins__', '__doc__', '__file__', '__name__', '__package__',
_arpack', 'arpack', 'aslinearoperator', 'eigen', 'eigen_symmetric',
But I still didn't get it. Why some of you can directly use
scipy.sparse.linalg.eigen as a function, while some of you couldn't use
it that way?
Anyway, your solution works for me.
On 1/12/2010 9:19 AM, Arnar Flatberg wrote:
> On Tue, Jan 12, 2010 at 4:11 PM, Jankins <andyjian430074 at gmail.com
> <mailto:andyjian430074 at gmail.com>> wrote:
> On my Ubuntu, I would reach the arpack wrapper as follows:
> from scipy.sparse.linalg.eigen.arpack import eigen
> However, I'd guess that you deal with a symmetric matrix (Laplacian or
> adjacency matrix), so the symmetric solver might be the best choice.
> This might be reached by:
> In : from scipy.sparse.linalg.eigen.arpack import eigen_symmetric
> In : scipy.__version__
> Out: '0.7.0'
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion