[SciPy-dev] KeyError: ('d', 'l')
Nils Wagner
nwagner at mecha.uni-stuttgart.de
Sat Mar 4 11:42:48 CST 2006
x0,info = linalg.cgs(A,r)
File
"/usr/local/lib/python2.4/site-packages/scipy/linalg/iterative.py",
line 465, in cgs
typ = _coerce_rules[b.dtype.char,atyp]
KeyError: ('d', 'l')
>>> A
array([[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 0],
[0, 0, 0, 1]])
>>> r
array([ 0.61542588, 0.53775049, 0.29953529,
0.50247666])
>>> type(A)
<type 'numpy.ndarray'>
A is defined as
A = identity(4)
More information about the Scipy-dev
mailing list