summaryrefslogtreecommitdiff
path: root/numpy/polynomial
Commit message (Collapse)AuthorAgeFilesLines
* Applied same fix as 1695458be to remaining 5 polynomial typesTom Boyd2017-02-015-5/+5
| | | | | | - Fixes documentation of polynomial types `*vander2d()` methods to give the correct last index of the pseudo-Vandermonde matrix returned expressed in terms of x and y.
* Fixing docstring error in polyvander2dTom Boyd2017-02-011-1/+1
|
* Changing spurious Legendre reference to Chebyshev in chebfit docstring.Danny Hermes2017-01-191-1/+1
|
* DEP: Fix escaped string characters deprecated in Python 3.6.Charles Harris2016-12-146-21/+21
| | | | | | | In Python 3.6 a number of escape sequences that were previously accepted -- for instance "\(" that was translated to "\\(" -- are deprecated. To retain the previous behavior either raw strings must be used or the backslash must be properly escaped itself.
* DOC: change version references from x.y to x.y.zPierre de Buyl2016-09-077-7/+7
|
* DOC: change Numpy to NumPy in dosctrings and commentsPierre de Buyl2016-09-067-7/+7
| | | | The strings in error messages were left untouched
* ENH: Add stacklevel to all (or almost all) our function callsSebastian Berg2016-09-026-6/+6
|
* MAINT: refactor and small fixes to polyvalfromroots.Charles Harris2016-06-122-19/+25
| | | | | | | | | Simplify the logic a bit and make behavior consistent with polyval. Note that this adds a check that the number of dimensions of the array of the evaluation points is less than the number of dimensions of the array of roots when tensor=False. That check is missing from polyval and needs to be added.
* ENH: Add `polyrootval` to numpy.polynomiale-q2016-06-122-2/+149
| | | | | | | | | | | As one can easily encounter when working with high-order signal processing filters, converting a high-order polynomial from its roots to its polynomial coefficients can be quite lossy, leading to inaccuracies in the filter's properties. This PR adds a new function, `polyrootval` - based on `polyval` - that evaluates a polynomial given a list of its roots. The benefit of calculating it this way can be seen at scipy/scipy:6059. Some tests are included, as well.
* DOC: Fix some incorrect RST definition listsEndolith2016-05-111-2/+2
|
* DOC: Minor typo fix, hermefik -> hermefit.Jeremy Tuloup2016-03-141-1/+1
|
* MAINT: Fix typos in docs/comment of `ma` and `polynomial` modules.Dongjoon Hyun2016-02-197-8/+8
|
* MAINT: Refactor polynomial leastsquares fits.Charles Harris2016-01-197-138/+105
| | | | | | | * Rewrite the documentation for `deg`. * Check that the passed degrees are int and raise if not. * Do not accept `deg` arguments that do not convert as 0-D or 1-D. * Sort passed degree terms for repeatability.
* TST: Add tests for check_fit with deg specified as listJonathan Underwood2016-01-181-0/+9
|
* ENH: Allow specification of terms to fit in fit methodJonathan Underwood2016-01-181-2/+8
|
* TST: Add tests for hermefit with deg specified as listJonathan Underwood2016-01-181-0/+31
|
* ENH: Allow specification of terms to fit in hermefitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for polyfit with deg specified as listJonathan Underwood2016-01-181-0/+27
|
* ENH: Allow specification of terms to fit in polyfitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for lagfit with deg specified as listJonathan Underwood2016-01-181-0/+16
|
* ENH: Allow specification of terms to fit in lagfitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for hermfit with deg specified as listJonathan Underwood2016-01-181-0/+31
|
* ENH: Allow specification of terms to fit in hermfitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for chebfit with deg specified as listJonathan Underwood2016-01-181-0/+31
|
* ENH: Allow specification of terms to fit in chebfitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for legfit with deg specified as listJonathan Underwood2016-01-181-0/+31
|
* ENH: Allow specification of terms to fit in legfitJonathan Underwood2016-01-181-8/+39
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* [TST] Refactor new raise_warnings logic for subpackage test suitesNathaniel J. Smith2015-12-301-3/+3
|
* MAINT: remove redundant sorting of eigenvaluesalex2015-06-222-2/+0
|
* MAINT: improve laguerre and legendre efficiencyalex2015-06-192-3/+1
|
* ENH: Take advantage of symmetry in leggauss.Andrew Dawson2015-06-191-1/+1
| | | | | | The calculation of points and weights for Gauss-Legendre quadrature can take advantage of the symmetry of the companion matrix when computing its eigenvalues in order to speed up the computation.
* DOC: Polynomial.deriv refers to integrations, not differentiationsAndrew Nelson2015-06-101-1/+1
|
* Fixed spelling mistakeRichard Barnes2015-05-121-1/+1
|
* DOC: Reconcile docstrings and function signatures where they disagreeRobert McGibbon2015-03-021-1/+1
| | | | | Fixed typos in docstrings were updated for functions where the parameter names in the docstring didn't match the function signature.
* Minor docstring fixRobert Johansson2015-01-082-2/+2
|
* MAINT: Improve computation of gauss weights for hermite and hermite_e.Charles Harris2014-10-042-14/+98
| | | | | | | | | | | | The new computations use normalized polynomials. Those polynomials are less subject to overflow and allow the determination of the weights and roots up to about degree 350, at which point the weights underflow. Two private functions are added for computing the values of the normalized polynomials: 1. _normed_hermite_n 2. _normed_hermite_e_n
* MAINT: Improve computation of scaled companion matrices.Charles Harris2014-10-042-6/+6
| | | | | | | | | The previous method used for hermite and hermite_e polynomials suffered from double overflow for polynomials of large degree. Those numbers were later scaled down by equally large numbers, but the result was NaN. The wanted values are now computed in such a way that overflow in some entries is replaced by underflow in others. The resulting zeros are a negligible perturbation of the companion matrix.
* Merge pull request #4924 from charris/pep8-numpy-polynomialCharles Harris2014-08-0417-448/+460
|\ | | | | Pep8 numpy polynomial
| * MAINT: Fix blemishes in numpy/polynomial/tests revealed by pyflakes.Charles Harris2014-07-296-13/+31
| |
| * STY: PEP8 fixes for numpy/polynomial/tests/*.py.Charles Harris2014-07-296-49/+49
| | | | | | | | Made conformant with the standards of scipy.
| * MAINT: Remove unused variables and imports in numpy/polynomial/*.py.Charles Harris2014-07-295-9/+2
| | | | | | | | Detected by pyflakes.
| * STY: PEP8 fixes for files in numpy/polynomial.Charles Harris2014-07-298-378/+379
| | | | | | | | | | The rather lax standards used in scipy were used to identify the needed style fixups.
| * BUG: Fix typo in hermite_e.py.Charles Harris2014-07-291-1/+1
| | | | | | | | The hermepow function was incorrectly listed in __all__ as hermpow.
* | Merge pull request #4671 from charris/prepare-1.10-develCharles Harris2014-07-061-927/+0
|\ \ | | | | | | MAINT: start 1.10-devel.
| * | MAINT: Remove the polytemplate.py file.Charles Harris2014-05-061-927/+0
| |/
* | DOC Polynomial example import statement corrected. #3615Ilambharathi Kanniah2014-06-241-2/+2
| |
* | DOC Polynomial example import statement updated. #3615Ilambharathi Kanniah2014-06-241-11/+11
|/
* MAINT: Comparison deprecation followup fixesSebastian Berg2014-05-042-4/+5
| | | | | | | Makes the identity check `a = np.array([np.nan], dtype=object)` `a == a`, etc. a deprecation/futurewarning instead of just changing it. Also fixes some smaller things.
* DEP: Deprecate that comparisons ignore errors.Sebastian Berg2014-05-041-3/+3
| | | | | | | | | | | | | | | | | | | | This means that for example broadcasting errors get raised. The array_equiv function is changed to explicitely test if broadcasting is possible. It may be nice to do this test differently, but I am not sure if that is possible. Create a FutureWarning for comparisons to None, which should result in areal elementwise (object) comparisons. Slightly adepted a wrong test. Poly changes: Some changes in the polycode was necessary, the one is probably a bug fix, the other needs to be thought over, since len check is not perfect maybe, since it is more liekly to raise raise an error. Closes gh-3759 and gh-1608
* TST: Add tests for the polynomial classes true division.Charles Harris2014-05-031-22/+54
|