Skip to content

einsum optimize default arg is documented as True but defaults to False #10258

@acbellini

Description

@acbellini

np.einsum documentation says that the optimize arg default is True:

function. See ``np.einsum_path`` for more details. Default is True.

but when the argument is missing, it defaults to False:

optimize_arg = kwargs.pop('optimize', False)

Proposed fix: change the argument to default to True, as it makes sense to use optimization unless explicitly disabled

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