summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWarren Weckesser <warren.weckesser@gmail.com>2013-11-02 14:09:47 -0400
committerWarren Weckesser <warren.weckesser@gmail.com>2013-11-02 14:09:47 -0400
commitc5c4d0bdc1a7971f35726421b245f6f3515a2cdf (patch)
tree408934e0bc49159e5e0091685acddc3fbc612867
parentcdd1419a1aef2e292991917f415cfe8d8891adf7 (diff)
downloadnumpy-c5c4d0bdc1a7971f35726421b245f6f3515a2cdf.tar.gz
MAINT: lib: Add a 'See Also' section to the vander docstring, and make a few more PEP8 tweaks.
-rw-r--r--numpy/lib/twodim_base.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/numpy/lib/twodim_base.py b/numpy/lib/twodim_base.py
index 8492db6f3..12e6a3cbd 100644
--- a/numpy/lib/twodim_base.py
+++ b/numpy/lib/twodim_base.py
@@ -9,8 +9,8 @@ __all__ = ['diag', 'diagflat', 'eye', 'fliplr', 'flipud', 'rot90', 'tri',
'triu_indices_from',
]
-from numpy.core.numeric import (asanyarray, subtract, arange,
- zeros, greater_equal, multiply, ones, asarray, where)
+from numpy.core.numeric import (asanyarray, subtract, arange, zeros,
+ greater_equal, multiply, ones, asarray, where)
def fliplr(m):
@@ -491,6 +491,10 @@ def vander(x, N=None, order='decreasing'):
``x^(N-1)``, the second ``x^(N-2)`` and so forth. If `order` is
"increasing", the columns are ``x^0, x^1, ..., x^(N-1)``.
+ See Also
+ --------
+ polynomial.polynomial.polyvander
+
Examples
--------
>>> x = np.array([1, 2, 3, 5])
@@ -537,7 +541,7 @@ def vander(x, N=None, order='decreasing'):
if N is None:
N = len(x)
if order == "decreasing":
- powers = arange(N-1, -1, -1)
+ powers = arange(N - 1, -1, -1)
else:
powers = arange(N)