Closed
Description
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 orautomatic
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