[Numpy-discussion] tensordot bug when summing over same axis indexes?

Jose Borreguero borreguero@gmail....
Tue Feb 24 13:55:47 CST 2009


The following example:

from numpy import *
a=arange(12).reshape(2,3,2)
b=arange(24).reshape(2,3,2,2)
c=tensordot( a,b,axes=([0,0],[1,1]) )

defaults:
c=tensordot( a,b,axes=([0,0],[1,1]) )
File "/usr/lib/python2.4/site-packages/numpy/core/numeric.py", line 359, in
tensordot
raise ValueError, "shape-mismatch for sum"
ValueError: shape-mismatch for sum

Am I doing something really stupid, or is this a bug?

-Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20090224/f513357d/attachment-0001.html 


More information about the Numpy-discussion mailing list