[Numpy-discussion] numpy.einsum bug?

Jaakko Luttinen jaakko.luttinen at aalto.fi
Fri Feb 22 11:00:41 EST 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