From: Roman G. <rom...@gm...> - 2006-03-07 09:27:42
|
Hello Back when pysparse's docs where written, "Numeric" and "NumPy" referred to the same extension package, which is now called only "Numeric". The new package now called "NumPy" is likely not compatible to pysparse due to changes in the C API. I hope that upgrading to latest Numeric solves your problems. -- Roman 2006/3/6, Daniel Wheeler <dan...@ni...>: > > > Begin forwarded message: > > From: Daniel Wheeler <dan...@ni...> > Date: March 6, 2006 11:29:52 AM EST > To: Dong Xu <do...@sc...> > Subject: Re: [Pysparse-users] Pysparse compilation question > > My suggestion would be to install the latest version of Numeric (version > 24.2). > > > > http://sourceforge.net/project/showfiles.php?group_id=3D1369&package_id= =3D1351 > > > Not numpy and not numarray but Numeric. Judging by the version number you > actually installed > Numeric version 20.3 and not Numpy. Numpy does not go up to version 20.3. > But I would > still recommend the latest version of Numeric, although it may not > necessarily be causing the underlying > problem. > > > > On Mar 5, 2006, at 8:24 PM, Dong Xu wrote: > > 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 siz= e. > =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 siz= e. > =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 > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting langua= ge > that extends applications into web and mobile media. Attend the live webc= ast > and join the prime developer group breaking into this new coding territor= y! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=110944&bid$1720&dat=121642 > _______________________________________________ > Pysparse-users mailing list > Pys...@li... > https://lists.sourceforge.net/lists/listinfo/pysparse-users > > > > ------------------------------------- > Daniel Wheeler > Telephone: (301) 975-8358 > > > > ------------------------------------- > > Daniel Wheeler > > Telephone: (301) 975-8358 > |