[SciPy-user] AttributeError: 'scipy.linalg' module has no attribute '_cast'
Travis Oliphant
oliphant at ee.byu.edu
Wed Mar 6 11:56:31 EST 2002
> Any idea ?
>
> Nils
>
> Moreover, the matrix functions do not work properly.
>
> >>> a = 1.*identity(2)
> >>> print sinm(a)
> 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
> "/usr/local/lib/python2.1/site-packages/scipy/linalg/linear_algebra.py",
> line 777, in sinm
> return toreal(-0.5j*(expm(1j*A) - expm(-1j*A)))
> File
> "/usr/local/lib/python2.1/site-packages/scipy/linalg/linear_algebra.py",
> line 735, in expm
> F = solve(D,N)
> File
> "/usr/local/lib/python2.1/site-packages/scipy/linalg/linear_algebra.py",
> line 122, in solve
> results = lapack_routine(a, bt)
> clapack.error: failed in converting 2nd argument `b' of clapack.zgesv to
> C/Fortran array
> >>>
Unfortunately, I think that the changes to f2py have broken the linalg
interfaces. Pearu is working on linalg2 which will replace linalg.
-Travis
More information about the SciPy-User
mailing list