[SciPy-user] shape mismatch: objects cannot be broadcast to a single shape
Nils Wagner
nwagner at iam.uni-stuttgart.de
Thu Jun 22 09:58:24 EDT 2006
Hi all,
>>> k = arange(0,4)
>>> r = linspace(0,3,10)
>>> special.jn(k,r)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: shape mismatch: objects cannot be broadcast to a single shape
It would be nice if special.jn(k,r) returns a two-dimensional array
corresponding to the length of k and r.
How can I resolve this problem ?
Nils
More information about the SciPy-User
mailing list