summaryrefslogtreecommitdiff
path: root/doc/source/reference/routines.polynomials.classes.rst
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: limit the number of decimals in Polynomial representation (#21654)Lev Maximov2022-06-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * limit the number of decimals in Polynomial representation * tests pass * parenthesize exponential notation in polynomials * fixed a long line warning * added polynomial printoptions tests * polynomial printoptions typo fixed * made switch to exp notation in polynomial display more natural * added a test on switching polynomials to exp notation * fixed linter errors/warnings * support for nanstr and infstr printoptions in polynomials * 10^8 threshold for switching to exp notation when displaying polynomials * merged in PR #21696 fixing issue #21695 * made linter happy * made some docstring tests pass * fixed the docs Co-authored-by: Lev Maximov <lev.maximov@gmail.com>
* ENH: Add support for symbol to polynomial package (#16154)Ross Barnowski2022-06-011-26/+26
| | | | | | | Adds a symbol attribute to the polynomials from the np.polynomial package to allow the user to control/modify the symbol used to represent the independent variable for a polynomial expression. This attribute corresponds to the variable attribute of the poly1d class from the old np.lib.polynomial module. Marked as draft for now as it depends on #15666 - all _str* and _repr* methods of ABCPolyBase and derived classes would need to be modified (and tested) to support this change. Co-authored-by: Warren Weckesser <warren.weckesser@gmail.com>
* Remove matplotlib output linesPierre de Buyl2021-12-081-4/+0
|
* DOC: remove explicit imports in rst filesPierre de Buyl2021-12-081-3/+0
| | | | Add conftest.py and pytest.ini files in doc directory
* [DOC] make some doctests in user,reference pass pytestPierre de Buyl2021-12-081-12/+15
| | | | | | | | | | | | 1. Add `import numpy as np` in rst files 2. Update NumPy repr for array (whitespace) 3. Update bytearray representation 4. Fix tiny output formatting (`<class ...>`, etc) 5. Format tracebacks 6. Skip random number tests or some platform-dependent outputs 7. Add `<matplotlib. ... at 0x...>` or similar output lines where missing 8. Set seed
* DOC: Update some plotting code to current Matplotlib idiomsTim Hoffmann2021-03-211-2/+4
| | | | | | | | | - 3D Axes are created via add_subplot(projection='3d') - There is now a `stairs()` function that's specifically designed for showing histogram curves - Labels should be passed as keyword arguments to the plot functions instead of to `legend()`, which reduces the risk of mixing them up. - ensure equal axis scaling in the meshgrid example
* DOC: Update poly class refguide printing.Ross Barnowski2020-05-151-3/+18
| | | | | | | | | Update routines.polynomials.classes doc in the refguide to reflect changes to polynomial printing. Add additional information to the document about the various ways that the string representation of polynomial expressions can be controlled via formatting.
* update doctests, small bugs and changes of reprPierre de Buyl2020-02-061-28/+28
| | | | | | | | | | Fix missing np prefix. Fix missing definitions. Use print function instead of the statement. Add seed to make output repeatable.
* DOC: Polybase augmented assignment notes (#11806)Jeff2018-08-261-5/+10
| | | | | | | | | | | | | | * Add augmented assignment for supported operations Add augmented assignments for `+=`, `-=`, `*=`, `/=`, `%=`, and `**=`. * correct idiv and imod * remove augomented operationa. add notes. Explicitly state the intention that all instances of a polynomial baseclass are immutable. * fix typo, remove Note from _polybase
* ENH: Show domain and window as kwargs in reprEric Wieser2017-08-101-24/+24
| | | | Also, update the docs with this new repr
* change all non-code instances of Numpy to NumPyPierre de Buyl2016-09-061-1/+1
| | | | | | | | | Instances remain for NumpyVersion and Numpy.rec.fromarrays that are references to code. Release notes were left unchanged. see issue #7986
* DOC: fix a typo and use TeX for plot labelsendolith2014-07-151-3/+3
|
* Fix minor typos in Polynomial class documentationKumar Appaiah2013-06-151-17/+17
| | | | Signed-Off-By: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
* Remove maskna API from ndarray, and all (and only) the code supporting itNathaniel J. Smith2012-06-161-28/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original masked-NA-NEP branch contained a large number of changes in addition to the core NA support. For example: - ufunc.__call__ support for where= argument - nditer support for arbitrary masks (in support of where=) - ufunc.reduce support for simultaneous reduction over multiple axes - a new "array assignment API" - ndarray.diagonal() returning a view in all cases - bug-fixes in __array_priority__ handling - datetime test changes etc. There's no consensus yet on what should be done with the maskna-related part of this branch, but the rest is generally useful and uncontroversial, so the goal of this branch is to identify exactly which code changes are involved in maskna support. The basic strategy used to create this patch was: - Remove the new masking-related fields from ndarray, so no arrays are masked - Go through and remove all the code that this makes dead/inaccessible/irrelevant, in a largely mechanical fashion. So for example, if I saw 'if (PyArray_HASMASK(a)) { ... }' then that whole block was obviously just dead code if no arrays have masks, and I removed it. Likewise for function arguments like skipna that are useless if there aren't any NAs to skip. This changed the signature of a number of functions that were newly exposed in the numpy public API. I've removed all such functions from the public API, since releasing them with the NA-less signature in 1.7 would create pointless compatibility hassles later if and when we add back the NA-related functionality. Most such functions are removed by this commit; the exception is PyArray_ReduceWrapper, which requires more extensive surgery, and will be handled in followup commits. I also removed the new ndarray.setasflat method. Reason: a comment noted that the only reason this was added was to allow easier testing of one branch of PyArray_CopyAsFlat. That branch is now the main branch, so that isn't an issue. Nonetheless this function is arguably useful, so perhaps it should have remained, but I judged that since numpy's API is already hairier than we would like, it's not a good idea to add extra hair "just in case". (Also AFAICT the test for this method in test_maskna was actually incorrect, as noted here: https://github.com/njsmith/numpyNEP/blob/master/numpyNEP.py so I'm not confident that it ever worked in master, though I haven't had a chance to follow-up on this.) I also removed numpy.count_reduce_items, since without skipna it became trivial. I believe that these are the only exceptions to the "remove dead code" strategy.
* DOC: Improve numpy reference documentation of polynomial classes.Charles Harris2012-01-091-12/+22
| | | | | Add more explanation of what happens in polynomial substitution and also of its use in casting between types. Clean up some rst glitches.
* DOC: Document the use of the polynomial convenience classes.Charles Harris2012-01-091-10/+337
|
* DOC: Rearrange the polynomial documents.Charles Harris2012-01-091-0/+15
This is the first step in cleaning up the polynomial documentation and writing an instructional section on the convenience classes.