[Numpy-discussion] Problems with complex matrices

Sebastien.deMentendeHorne at electrabel.com Sebastien.deMentendeHorne at electrabel.com
Fri Oct 22 02:44:46 EDT 2004


gmres returns a tuple so you should have used
res = dot(A, x[0]) - r

seb

> -----Original Message-----
> From: Nils Wagner [mailto:nwagner at mecha.uni-stuttgart.de]
> Sent: vendredi 22 octobre 2004 11:13
> To: SciPy Users List; numpy-discussion at lists.sourceforge.net
> Subject: [Numpy-discussion] Problems with complex matrices
> 
> 
> Hi all,
> 
> Another bug is revealed
> 
> Traceback (most recent call last):
>   File "complex_it.py", line 6, in ?
>     res=dot(A,x)-r
>   File 
> "/usr/lib/python2.3/site-packages/Numeric/dotblas/__init__.py", 
> line 55, in dot
>     if multiarray.array(a).shape == () or 
> multiarray.array(b).shape == ():
> TypeError: a float is required
>  
> Nils
> 
> 




More information about the NumPy-Discussion mailing list