summaryrefslogtreecommitdiff
path: root/numpy/polynomial
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* BUG: Fix __truediv__ bug in polytemplate.py file.Charles Harris2014-05-031-17/+10
| | | | | The use of polytemplate is deprecated, this fix is only for a backport if needed.
* MAINT: Refactor numpy/polynomial/_polybase.pyCharles Harris2014-05-031-121/+100
| | | | | | | | | | 1) Clean up the code and move repeated snippet to a method. 2) Remove use of has_sametype, has_samewindow, has_samedomain. I would like to deprecate those methods. 3) Fix error in __truediv__, and make it only allow non-boolean numbers for the denominator. Closes #4631.
* fixing poly2herm exampleDiego Mesa2014-04-241-1/+1
|
* Merge pull request #4566 from juliantaylor/na-docCharles Harris2014-03-286-30/+0
|\ | | | | DOC: remove obsolete NA reference from polyfit docs
| * DOC: remove obsolete NA reference from polyfit docsJulian Taylor2014-03-286-30/+0
| |
* | DEP: Deprecate the numpy/polnomial/polytemplate.py module.Charles Harris2014-03-261-0/+6
| | | | | | | | Make the version of its removal Numpy 1.10.0.
* | DOC: Fixup documentation for new way of generating classes.Charles Harris2014-03-267-225/+356
| | | | | | | | | | | | | | | | | | | | Move the class documentation to the place of definition in the appropriate module. This allow for documenting the specific series kind along with the series specific default domains and windows Remove template placeholders from the ABCPolyBase class documention. General fixup of documentation that rendered poorly.
* | DOC: Cleanup polyutils.py module documentation.Charles Harris2014-03-261-18/+39
| | | | | | | | Also note that PolyBase is no longer to be used.
* | ENH, MAINT: Use an abstract base class for the polynomial classes.Charles Harris2014-03-267-18/+1140
|/ | | | | | | | The new base is ABCPolyBase and is intended to replace the use of the polytemplate string. In this way the need to compile the polynomial classes on import is avoided. Closes #634. Closes #3639.
* typoJames Yu2014-03-011-1/+1
|
* Merge pull request #3676 from charris/pep8-polynomial-testsCharles Harris2013-09-069-523/+504
|\ | | | | STY: Make numpy/polynomial/tests/*.py PEP8 compliant.
| * STY: Make numpy/polynomial/tests/*.py PEP8 compliant.Charles Harris2013-09-039-523/+504
| | | | | | | | Run autopep8 on the tests and fixup the results.