Skip to content

Discussion of diff procedure #606

Closed
@zoziha

Description

@zoziha

Motivation

Here are some questions about the diff procedure:

  • Is it worth introducing diff procedure?
  • API of diff procecure?
    Function? Subroutine?
  • Return value: allocatbable array or automatic array?

#605 is about the submission of diff, it seems that the efficiency of this implementation needs to be improved. Its API needs to be discussed and reached a consensus.

@gareth-nx has some suggestions in #605. (see here )

  • Efficiency
  • API
  • User-oriented

Prior Art

Y = diff(X)
Y = diff(X,n)
Y = diff(X,n,dim)
Y = numpy.diff(a, n=1, axis=-1, prepend=<no value>, append=<no value>)

Note:
prepend, append: array_like, optional: New in numpy version 1.16.0.

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIDiscussion on a specific API for a proposal (exploratory)ideaProposition of an idea and opening an issue to discuss it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions