Einsum does not work for multiple scalar inputs #3011

jluttine opened this Issue Feb 22, 2013 · 3 comments


None yet

3 participants


The following command raises an error:

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

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

charris commented Mar 9, 2013

@seberg Did you fix this?

seberg commented Mar 9, 2013

It goes away with the nditer fix (and added a test there).

seberg commented Apr 2, 2013

This is now fixed in master by gh-3104.

@seberg seberg closed this Apr 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment