[SciPy-dev] Problem with flapack

Heiko Henkelmann heiko at hhenkelmann.de
Thu Feb 14 15:43:24 EST 2002


>
> It might be that you are passing in a list (although that *should* be a
valid
> thing to do).
> Does it work if you try:
>     >>> from scipy import *
>     >>> from scipy import signal as s
>     >>> s.roots(array([1.,2.,3.,4.])
>

Nope:

>>> from scipy import *
>>> from scipy import signal as s
>>> s.roots(array([1.,2.,3.,4.]))
array_from_pyobj:intent(inout) array must be contiguous and with a proper
type and size.
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\USR\PYTHON21\scipy\basic1a.py", line 48, in roots
    root[:N-1] = eig(A)[0]
  File "C:\USR\PYTHON21\scipy\linalg\linear_algebra.py", line 439, in eig
    results = ev(a, jobvl='N', jobvr=vchar, lwork=-1)  # query
flapack.error: failed in converting 1st argument `a' of flapack.zgeev to
C/Fortran array
>>>


Heiko





More information about the SciPy-Dev mailing list