
Jan. 26, 2008
6:32 a.m.
Is this a bug? In [21]: a = ones((2,2)) In [22]: b = ones((2,2,2,2)) In [23]: tensordot(a, tensordot(b, a, 2), 2) Out[23]: array(16.0) It seems to me that consistency with the dot product would require a scalar result, not a 0-dim array. Also, do we have a plain old tensor product? Outer flattens the indices. Chuck
6222
Age (days ago)
6222
Last active (days ago)
0 comments
1 participants
participants (1)
-
Charles R Harris