Skip to content

Add gradient #468

@jakirkham

Description

@jakirkham

It would be useful to have some gradient implementation in the spec. Possibly starting with np.gradient.

Though it is worth noting that np.gradient returns separate arrays in a list, but this can be an issue if users want them combined (since this entails a copy of potentially large arrays). To alleviate this, it would be helpful to have some option to return them pre-stacked. Usually it is pretty trivial to split them up later if needed list(a_g).

Edit: Another possible option would be an out parameter. Though this may need some clarification given the current list behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    API extensionAdds new functions or objects to the API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions