Skip to content

Possible generalization of gufunc keepdims for multiple outputs #11118

Open

Description

@mhvk

#11098 introduced a keepdims argument for gufuncs for which all the inputs had the same number of core dimensions and all the outputs had none; for those, it would insert dimensions of length 1 in the outputs, i.e., a signature like (i),(i)->(),() is changed to (i),(i)->(1),(1).

In #11098 (comment), @eric-wieser wondered whether it should also support signatures like (i),(i)->(),(i), i.e., allow outputs with the same number of dimensions as the inputs as well as those with no core dimensions. This issue is to remind us of this suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions