When passing in a list of longs and asking that the dtype be a float
(yes, losing precision), the error message is uninformative whenever
the long is larger than the largest float.
>>> x =
>>> 18162664233348664066431651147991808763481175659998486127848191363485244685895222694105917846256694202714
On 07/01/2010 18:51, Nikolas Tezak wrote:
> However when I do this, vdot raises a ValueError complaining that the
> "vectors have different lengths".
Nikolas,
looks like a bug, in numpy 1.4 on mac ppc too. Use dot instead --
import numpy as np
x = 1j * np.ones(( 2, 3 ))
y = np.ones( 3 )
try: