[SciPy-user] Undefined symbol "ATL_cpttrsm"
Lee Harr
missive at hotmail.com
Sun Oct 31 19:05:49 EST 2004
>>but I still get ...
>>
>>ImportError:
>>/usr/local/lib/python2.3/site-packages/scipy/linalg/clapack.so: Undefined
>>symbol "clapack_sgesv"
>
>Symbol "clapack_sgesv" should be defined in atlas liblapack.{a,so}. But
>this may be different in freebsd. Try changing 'lapack' to 'alapack' or
>'alapack_r'.
>
>Note that I am just guessing here, so, if you get more undefined symbol
>errors then try to find out yourself where these symbols are defined using
>nm, for instance, and modify library name lists accordingly. Let us know
>about the results.
>
Does the phrase 'woot!' mean anything to you?
def calc_info(self):
lib_dirs = self.get_lib_dirs()
info = {}
atlas_libs = self.get_libs('atlas_libs',
self._lib_names + ['atlas_r'])
lapack_libs = self.get_libs('lapack_libs',['alapack_r'])
did the trick...
>>>from scipy import *
>>>linalg.solve
<function solve at 0x83b0064>
>>>A = mat('[1 3 5; 2 5 1; 2 3 8]')
>>>A.I
Matrix([[-1.48, 0.36, 0.88],
[ 0.56, 0.08, -0.36],
[ 0.16, -0.12, 0.04]])
>>>linalg.inv(A)
array([[-1.48, 0.36, 0.88],
[ 0.56, 0.08, -0.36],
[ 0.16, -0.12, 0.04]])
>>>b = mat('[10;8;3]')
>>>A.I * b
Matrix([[-9.28],
[ 5.16],
[ 0.76]])
>>>linalg.solve(A, b)
array([[-9.28],
[ 5.16],
[ 0.76]])
The other patch I needed to get scipy to build under
FreeBSD was to remove references to the arctanh_data,
arccosh_data, and arcsinh_data from
scipy_core/scipy_base/fastumath_unsigned.inc
Should I post complete patches here, or create a FreeBSD
ports problem report?
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
More information about the SciPy-User
mailing list