I am using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) under Windows XP and converting a program from Numeric to Numpy. If I have two arrays, say K and T and do dot(K,T) or K*T everything goes well, but if I have a vector b and try dot(K,b) or K*b I get a segfault. I have tried to run the test in tes_numeric.py and get the same result. I have tried too to convert b in a matrix with two columns, the second one being all zeroes, and numpy makes the multiplication correctly, so I think the problem is just with vectors Does this happens with other versions or do you have any idea to fix this problem? Thanks in advance -- Jesús Torrecilla Pinero Universidad de Extremadura jtorrecilla at utcsl.com jtorreci at unex.es
What CPU do you have and which version of numpy did you get and where did
you get it from ?
Matthieu
2007/11/17, Jesus Torrecilla Pinero
I am using Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) under Windows XP and converting a program from Numeric to Numpy. If I have two arrays, say K and T and do dot(K,T) or K*T everything goes well, but if I have a vector b and try dot(K,b) or K*b I get a segfault.
I have tried to run the test in tes_numeric.py and get the same result.
I have tried too to convert b in a matrix with two columns, the second one being all zeroes, and numpy makes the multiplication correctly, so I think the problem is just with vectors
Does this happens with other versions or do you have any idea to fix this problem?
Thanks in advance
-- Jesús Torrecilla Pinero Universidad de Extremadura jtorrecilla at utcsl.com jtorreci at unex.es _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
-- French PhD student Website : http://miles.developpez.com/ Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn : http://www.linkedin.com/in/matthieubrucher
numpy-1.0.4.win32-py2.5 from sourceforge (precompiled binary) CPU: AMD Athlon XP 2600+ 2.09 GHz, 1.00 Gb RAM The error report says: AppName: pythonw.exe AppVer: 0.0.0.0 ModName: _dotblas.pyd ModVer: 0.0.0.0 Offset: 0007ecf3 Jesús Torrecilla Pinero
2007/11/17, Jesus Torrecilla Pinero
numpy-1.0.4.win32-py2.5 from sourceforge (precompiled binary) CPU: AMD Athlon XP 2600+ 2.09 GHz, 1.00 Gb RAM The error report says: AppName: pythonw.exe AppVer: 0.0.0.0 ModName: _dotblas.pyd ModVer: 0.0.0.0 Offset: 0007ecf3
OK, I think the problem is that you don't have the SSE2 instruction set and IIRC, this package needs it. David Cournapeau created a package that could solve your problem, but I don't remember the link, you can brows the archive for it ;) Matthieu -- French PhD student Website : http://miles.developpez.com/ Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92 LinkedIn : http://www.linkedin.com/in/matthieubrucher
participants (2)
-
Jesus Torrecilla Pinero
-
Matthieu Brucher