diff options
author | Eric Wieser <wieser.eric@gmail.com> | 2019-08-24 14:29:42 -0700 |
---|---|---|
committer | Eric Wieser <wieser.eric@gmail.com> | 2019-09-14 19:55:48 -0700 |
commit | e443198415038a5995a15c6c32b6de0919c95f70 (patch) | |
tree | d0c063724c5c7c872b725f305c37549b62be71f0 /numpy/polynomial/chebyshev.py | |
parent | 99c62dc44a70af407f266eb30b756b297c215899 (diff) | |
download | numpy-e443198415038a5995a15c6c32b6de0919c95f70.tar.gz |
MAINT: polynomial: Add an N-d vander implementation used under the hood of the vander2d and vander3d functions
The generalization is not exposed in the public API yet, but it could be if the need arises.
The shape / dtype conversion logic is left as is for now, even if it might be broken.
Diffstat (limited to 'numpy/polynomial/chebyshev.py')
-rw-r--r-- | numpy/polynomial/chebyshev.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/polynomial/chebyshev.py b/numpy/polynomial/chebyshev.py index 093eb0048..0cd9c4d23 100644 --- a/numpy/polynomial/chebyshev.py +++ b/numpy/polynomial/chebyshev.py @@ -1468,7 +1468,7 @@ def chebvander2d(x, y, deg): .. versionadded:: 1.7.0 """ - return pu._vander2d(chebvander, x, y, deg) + return pu._vander_nd_flat((chebvander, chebvander), (x, y), deg) def chebvander3d(x, y, z, deg): @@ -1522,7 +1522,7 @@ def chebvander3d(x, y, z, deg): .. versionadded:: 1.7.0 """ - return pu._vander3d(chebvander, x, y, z, deg) + return pu._vander_nd_flat((chebvander, chebvander, chebvander), (x, y, z), deg) def chebfit(x, y, deg, rcond=None, full=False, w=None): |