On Mittwoch 26 März 2008, Charles R Harris wrote: > The docstring is incorrect. The Vandermonde matrix produced is compatible > with numpy polynomials that also go from high to low powers. I would have > done it the other way round, so index matched power, but that isn't how it > is.
Patch attached. Andreas
Index: numpy/lib/twodim_base.py =================================================================== --- numpy/lib/twodim_base.py (Revision 5001) +++ numpy/lib/twodim_base.py (Arbeitskopie) @@ -148,7 +148,7 @@ X = vander(x,N=None) The Vandermonde matrix of vector x. The i-th column of X is the - the i-th power of x. N is the maximum power to compute; if N is + the N-(i+1)-th power of x. N is the maximum power to compute; if N is None it defaults to len(x). """
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion