diff options
author | Pauli Virtanen <pav@iki.fi> | 2009-02-14 22:09:26 +0000 |
---|---|---|
committer | Pauli Virtanen <pav@iki.fi> | 2009-02-14 22:09:26 +0000 |
commit | 9902bd1969a738ddec9e01d019d98142dda59f3f (patch) | |
tree | 7aa8e05daec4391ba5eccc20876cf5391a6ae72a /numpy/lib/function_base.py | |
parent | 33d79edf8e06fd69b26a9331d612caadb7b55672 (diff) | |
download | numpy-9902bd1969a738ddec9e01d019d98142dda59f3f.tar.gz |
More add_newdocs entries, and make add_newdoc capable of adding docs also to normal Python objects.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 269a97721..283e3faff 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1073,53 +1073,6 @@ def diff(a, n=1, axis=-1): else: return a[slice1]-a[slice2] -try: - add_docstring(digitize, -r"""digitize(x,bins) - -Return the index of the bin to which each value of x belongs. - -Each index i returned is such that bins[i-1] <= x < bins[i] if -bins is monotonically increasing, or bins [i-1] > x >= bins[i] if -bins is monotonically decreasing. - -Beyond the bounds of the bins 0 or len(bins) is returned as appropriate. - -""") -except RuntimeError: - pass - -try: - add_docstring(bincount, -r"""bincount(x,weights=None) - -Return the number of occurrences of each value in x. - -x must be a list of non-negative integers. The output, b[i], -represents the number of times that i is found in x. If weights -is specified, every occurrence of i at a position p contributes -weights[p] instead of 1. - -See also: histogram, digitize, unique. - -""") -except RuntimeError: - pass - -try: - add_docstring(add_docstring, -r"""docstring(obj, docstring) - -Add a docstring to a built-in obj if possible. -If the obj already has a docstring raise a RuntimeError -If this routine does not know how to add a docstring to the object -raise a TypeError - -""") -except RuntimeError: - pass - - def interp(x, xp, fp, left=None, right=None): """ One-dimensional linear interpolation. |