[Numpy-discussion] numpy.dot gives wrong results with floats?
Paulo Jose da Silva e Silva
pjssilva at ime.usp.br
Wed Mar 1 05:10:09 EST 2006
Em Qua, 2006-03-01 às 01:05 -0800, Zachary Pincus escreveu:
> In [4]: numpy.dot([[5.]],[[1,1,1]]) # 2D float case: what???
> Out[4]: array([[ 5.00000000e+000, 4.46601253e-316,
> 5.42111867e-306]])
It seems fixed in the repository
In [1]:import numpy
In [2]:numpy.dot([[5]],[[1,1,1]]) # 2D int case OK
Out[2]:array([[5, 5, 5]])
In [3]:numpy.dot([[5.]],[[1,1,1]]) # 2D float case: what???
Out[3]:array([[ 5., 5., 5.]])
In [4]:numpy.version.version
Out[4]:'0.9.6.2179'
Best,
Paulo
More information about the NumPy-Discussion
mailing list