filter(lambda x: x.startswith('eig'),dir(np.linalg))
['eig', 'eigh', 'eigvals', 'eigvalsh']
import scipy.linalg as spla
filter(lambda x: x.startswith('eig'),dir(spla))
['eig', 'eig_banded', 'eigh', 'eigvals', 'eigvals_banded', 'eigvalsh']
hth,
Alan Isaac
On 1/12/2010 1:35 AM, Jankins wrote:
from scipy.sparse.linalg.eigen import eigen
Traceback (most recent call last):
File stdin, line 1, inmodule
ImportError: cannot import name eigen
Look at David's example:
from scipy.sparse.linalg import eigen
hth,
Alan Isaac
import scipy.sparse.linalg as linalg
dir(linalg)
['LinearOperator', 'Tester', '__all__', '__builtins__', '__doc__',
'__file__', '
__name__', '__package__', '__path__', 'aslinearoperator', 'bench',
'bicg', 'bicg
stab', 'cg', 'cgs', 'dsolve', 'eigen', 'factorized', 'gmres',
'interface', 'isol
On Tue, Jan 12, 2010 at 4:11 PM, Jankins andyjian430...@gmail.com wrote:
Hi
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
Thanks so so much.
Finally, it works.
import scipy.sparse.linalg.eigen.arpack as arpack
dir(arpack)
['__builtins__', '__doc__', '__file__', '__name__', '__package__',
'__path__', '
_arpack', 'arpack', 'aslinearoperator', 'eigen', 'eigen_symmetric',
'np', 'speig
s', 'warnings']
But I
Hello,
I want to use scipy.sparse.linalg.eigen function, but it keeps popping
out error message:
TypeError: 'module' object is not callable
eigen is a module, but it has __call__ method. Why couldn't I call
scipy.sparse.linalg.eigen(...)?
Thanks.
Jankins
On Mon, Jan 11, 2010 at 17:44, Jankins andyjian430...@gmail.com wrote:
Hello,
I want to use scipy.sparse.linalg.eigen function, but it keeps popping
out error message:
TypeError: 'module' object is not callable
eigen is a module, but it has __call__ method. Why couldn't I call
It is very simple code:
import networkx as nx
import scipy.sparse.linalg as linalg
G = nx.Graph()
G.add_star(range(9))
M= nx.to_scipy_sparse_matrix(G)
print linalg.eigen(M)
Thanks.
Jankins
On 1/11/2010 5:49 PM, Robert Kern wrote:
On Mon, Jan 11, 2010 at 17:44, Jankinsandyjian430...@gmail.com
On Mon, Jan 11, 2010 at 18:03, Jankins andyjian430...@gmail.com wrote:
It is very simple code:
import networkx as nx
import scipy.sparse.linalg as linalg
G = nx.Graph()
G.add_star(range(9))
M= nx.to_scipy_sparse_matrix(G)
print linalg.eigen(M)
Thanks.
Please post the complete
I am sorry. My bad.
File C:\test.py, line 7, in module
print linalg.eigen(M)
TypeError: 'module' object is not callable
I installed pythonxy. pythonxy has already included the scipy package.
On 1/11/2010 6:12 PM, Robert Kern wrote:
On Mon, Jan 11, 2010 at 18:03,
On Mon, Jan 11, 2010 at 7:16 PM, Jankins andyjian430...@gmail.com wrote:
I am sorry. My bad.
File C:\test.py, line 7, in module
print linalg.eigen(M)
TypeError: 'module' object is not callable
I installed pythonxy. pythonxy has already included the scipy package.
On 1/11/2010 6:12
Here is the command line python:
import scipy.sparse.linalg as linalg
linalg.eigen()
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: 'module' object is not callable
It's really wired.
Jankins
On 1/11/2010 7:53 PM, josef.p...@gmail.com wrote:
On Mon, Jan
On Mon, Jan 11, 2010 at 9:03 PM, Jankins andyjian430...@gmail.com wrote:
Here is the command line python:
import scipy.sparse.linalg as linalg
linalg.eigen()
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: 'module' object is not callable
linalg has no attribute eigen.
Are you able to use scipy.sparse.linalg.eigen?
My working dir is not inside scipy. It is 'C:\\Users\\jankins'.
I am using Python 2.6.2 and the latest version of scipy.
What should I do? And I couldn't even successfully install scipy in
Ubuntu 9.10 neither by
On Mon, Jan 11, 2010 at 10:31 PM, Jankins andyjian430...@gmail.com wrote:
linalg has no attribute eigen.
You should post full tracebacks. I don't understand this error,
because before eigen seemed to exist.
You could run the test suite to see if the installation is ok and
sparse is working
Jankins wrote:
What should I do? And I couldn't even successfully install scipy in
Ubuntu 9.10 neither by easy_install or source compilation. I am so
desperate.
Don't use easy_install, and install from sources with python setup.py
install, both numpy and scipy, after having installed the
Thanks so much. I have successfully installed scipy in Ubuntu 9.10. But
I still couldn't use scipy.sparse.linalg.eigen function.
The test result is :
Ran 3490 tests in 40.268s
FAILED (KNOWNFAIL=4, SKIP=28, failures=1)
Thanks again.
Jankins
On 1/11/2010 10:33 PM, David Cournapeau wrote:
Jankins wrote:
Thanks so much. I have successfully installed scipy in Ubuntu 9.10. But
I still couldn't use scipy.sparse.linalg.eigen function.
Please report *exactly* the suite of commands which is failing. For
example, the following works for me:
import numpy as np
from scipy.sparse import
Here is the complete command lines in Windows 7:
C:\Users\jankinspython
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
(Intel)] on
win32
Type help, copyright, credits or license for more information.
from scipy.sparse.linalg.eigen import eigen
Traceback (most recent call
19 matches
Mail list logo