[SciPy-user] problem with the determinant of matrix

emilia12@ma... emilia12@ma...
Wed Mar 21 13:29:00 CDT 2007


Hi Andrew,

my computer is PIII on 1000MHz but i tried the same at my
work (PIV 2core ... etc) and it didn't crash but it
reported the following error:
RuntimeError: module compiled against version 1000002 of
C-API but this version of numpy is 1000009
RuntimeError: module compiled against version 1000002 of
C-API but this version of numpy is 1000009

and then I changed the 2dn line:
from scipy.linalg import inv, det, eig
with:
import numpy

and:
print numpy.linalg.det(A)
works OK

so probably there is a problem with numpy and scipi ?


regards
e.


Цитат на писмо от Andrew Straw <strawman@astraw.com>:

> Andrew Straw wrote:
> > Could this be the issue that the SciPy build on the
> website was built
> > with SSE2 support and you don't have SSE2? Do you have
> an older
> > processor (other than Intel Pentium 3 or AMD
> something-or-other)? Not
> >
>                           ^^^^^ older
> > using Windows much, I don't keep track of the details,
> but there
> > historically has been the occasional issue along these
> lines, and I'm
> > not sure it's been addressed.
> >
> > -Andrew
> >
> > emilia12@mail.bg wrote:
> >
> >> Hi list,
> >> i have a problem with the determinant of matrix.
> Following
> >> the example ("http://www.scipy.org/SciPy_Tutorial"):
> >> #code
> >> from numpy import matrix
> >> from scipy.linalg import inv, det, eig
> >>
> >> A=matrix([[1,1,1],[4,4,3],[7,8,5]]) # 3 lines 3 rows
> >> b = matrix([1,2,1]).transpose()     # 3 lines 1 rows.
> >>
> >> print det(A)     # We can check, whether the matrix is
> >> regular
> >> #/code
> >>
> >> the python crashes with "Exit code: -1073741795"
> >>
> >> versions:
> >> Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310
> 32 bit
> >> (Intel)] on win32
> >> NumPy 1.0.1 for Python 2.4
> >> SciPy 0.5.2 for Python 2.4
> >>
> >> so, any ideas why this happens?
> >>
> >> e.
> >>
> >>
> >>
> >>
> >>
> >> -----------------------------
> >>
> >> SCENA - Единственото БЕЗПЛАТНО списание за мобилни
> комуникации и технологии.
> >> http://www.bgscena.com/
> >>
> >> _______________________________________________
> >> SciPy-user mailing list
> >> SciPy-user@scipy.org
> >> http://projects.scipy.org/mailman/listinfo/scipy-user
> >>
> >>
> >
> >
> > _______________________________________________
> > SciPy-user mailing list
> > SciPy-user@scipy.org
> > http://projects.scipy.org/mailman/listinfo/scipy-user
> >
>
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
>




-----------------------------

SCENA - Единственото БЕЗПЛАТНО списание за мобилни комуникации и технологии.
http://www.bgscena.com/



More information about the SciPy-user mailing list