Skip to content

Einsum does not work for multiple scalar inputs #3011

Closed
@jluttine

Description

@jluttine

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions