[Numpy-discussion] numpy.dot gives wrong results with floats?

Jonathan Taylor jonathan.taylor at utoronto.ca
Wed Mar 1 09:03:10 CST 2006


Is there a test for this in the test suite.? It looks really bad for
numpy if ppl cant do matrix multiplication properly on released
versions. :(

J.

On 3/1/06, Paulo Jose da Silva e Silva <pjssilva at ime.usp.br> wrote:
> 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
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>




More information about the Numpy-discussion mailing list