Hi,
I'm new user of Pysparse because i've heard about the excellent JD
eigenvalue solver in this package. I'm trying to install Pysparse on a
Ubuntu linux box. The compilation of Numpy 20.3 and Pysparse finished
with no error. I ran the Numpy test code in its demo directory, no
problem. But when I tried to run the Pysparse examples, I got the
following errors:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
For pysparse_test.py:
dxu@kubuntu:~/pysparse-0.34.032/Examples$ python pysparse_test.py
ll_mat(general, [5,5]):
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
0.0
ll_mat(general, [5,5]):
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
ll_mat(general, [5,5]):
-------- -------- -------- -------- --------
-------- -------- -------- 2.000000 --------
-------- 1.000000 -------- -------- --------
-------- -------- -------- -------- --------
-------- -------- -------- -------- --------
csr_mat([5,5], [(1,3): 2, (2,1): 1])
2.0
0.0
2
csr_mat([10,10], [(0,0): 1, (1,1): 2, (2,2): 3, (3,3): 4, (4,4): 5,
(5,5): 6, (6,6): 7, (7,7): 8, (8,8): 9, (9,9): 10]) [ 1. 1. 1. 1.
1. 1. 1. 1. 1. 1.] [ 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.]
Traceback (most recent call last):
File "pysparse_test.py", line 31, in ?
A.matvec(x, y)
ValueError: arg 1 must be a 1-dimensional double array of appropriate size.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
For jdsym_test.py:
dxu@kubuntu:~/pysparse-0.34.032/Examples$ python jdsym_test.py
Test 1
JDSYM Solving A*x =3D lambda*x without preconditioning.
N=3D 1000 ITMAX=3D 150
KMAX=3D 5 JMIN=3D 5 JMAX=3D 10 V0DIM=3D 0
BLKSIZE=3D 1 BLKWISE=3D FALSE
TAU=3D 0.0000e+00 JDTOL=3D 1.0000e-06 STRATEGY=3D 0
OPTYPE=3D SYM
LINITMAX=3D 200 EPS_TR=3D 1.000e-04 TOLDECAY=3D 1.50e+00
Traceback (most recent call last):
File "jdsym_test.py", line 58, in ?
jmin=3D5, jmax=3D10, eps_tr=3D1e-4, clvl=3D1)
ValueError: arg 1 must be a 1-dimensional double array of appropriate size.
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
I just couldn't figure out what went wrong with the programs. Would
you please give me some hint?
Thank you,
David
|