summaryrefslogtreecommitdiff
path: root/diff.py
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2018-03-27 11:56:18 +0200
committerAnton Khirnov <anton@khirnov.net>2018-03-27 11:56:18 +0200
commit8851f6e78392ee0273c1530e799b0a2e89aea780 (patch)
tree7b79a3af4dea11f3a286084038376d3de997c88a /diff.py
parentaff403d85b33091f6d7bf288177320fd3dab4359 (diff)
Document return type for FiniteDifferenceUniform.__call__
Diffstat (limited to 'diff.py')
-rw-r--r--diff.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/diff.py b/diff.py
index 2430a0e..bd9a135 100644
--- a/diff.py
+++ b/diff.py
@@ -86,6 +86,8 @@ class FiniteDifferenceUniform(object):
:param array_like arr: Array to differentiate.
:param int axis: Axis along which to differentiate.
:param float dx: Spacing between array elements.
+ :return: derivative of arr
+ :rtype: Numpy array, same shape and type as arr.
"""
coeff = self._coeffs
div = self._div