[Numpy-discussion] Uninformative Error

2010-01-10 Thread T J
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

Re: [Numpy-discussion] Behaviour of vdot(array2d, array1d)

2010-01-10 Thread denis
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: