[Numpy-discussion] numpy.einsum bug?

Jaakko Luttinen jaakko.luttinen@aalto...
Fri Feb 22 10:00:41 CST 2013


Hi,

Is this a bug in numpy.einsum?

>>> np.einsum(3, [], 2, [], [])
ValueError: If 'op_axes' or 'itershape' is not NULL in theiterator
constructor, 'oa_ndim' must be greater than zero

I think it should return 6 (i.e., 3*2).

Regards,
Jaakko


More information about the NumPy-Discussion mailing list