Skip to content

gradient(): remove from Base, then deprecate #16113

@stevengj

Description

@stevengj

gradient(1:10) doesn't work because it dispatches to a method that only takes Array arguments.

Also, gradient doesn't support multi-dimensional arrays, whereas in Matlab and NumPy it returns an N-tuple of the gradients along different directions.

cc: @andreasnoack, who looked at these functions in #5321.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestGood for Hacktoberfest participantsgood first issueIndicates a good issue for first-time contributors to JuliamathsMathematical functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions