| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
This previously:
* Did not indicate the arguments in the abstract methods
* Did not actually use the `abc` mechanism at all on python 3 (`__metaclass__` does not work any more)
* Used the now-deprecated `@abstractproperty`
This didn't cause any runtime problems, but does confuse LGTM, and was using the `abc` module incorrectly.
This uses python3-only features of the abc module, so can't be backported.
|
| |
|
|
|
|
| |
This variable is never used, and shows signs of being leftover from a previous implementation.
Introduced in gh-11528. Closes gh-11842
|
| |\
| |
| | |
DOC: add comment to remove fn after python 2 support is dropped
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
| |
* Remove misleading reference to numpy/polynomial/polynomial/polyfit.
* Add missing period in numpy/polynomial/_polybase.py
|
| |
|
|
|
|
|
|
|
|
| |
* DOC: reccomend polynomail.Polynomial over np.polyfit
* update from review
* update from review, fix links
* fix from review
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Choices made, and the alternatives rejected (for no particularly strong reason):
1. Show terms in ascending order, to match their internal representation
* alternative: descending, to match convention
2. Shows 0 terms in gray
* alternative: omit entirely
* alternative: show normally to aid comparison
3. Write each term as `basis(ax + b)
* alternative: write as `basis(u) ... where u = ax + b`
* alternative: show the normalized polynomial
In future it would perhaps make sense to expose these options to the end user
|
| |
|
|
| |
Also, update the docs with this new repr
|
| | |
|
| |
|
|
| |
Bare except is very rarely the right thing
|
| |
|
|
|
|
|
|
| |
Add `__array_ufunc__ = None` to ABCPolyBase. This ensures that polynomial
convenience classes will not participate in ufuncs and will have priority
when combined with an ndarray in a Python binary operator.
`__array_priority__` is removed, as it is no longer needed.
|
| | |
|
| |
|
|
| |
The strings in error messages were left untouched
|
| | |
|
| |
|
|
|
|
|
| |
* 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.
|
| | |
|
| | |
|
| |
|
|
|
| |
The rather lax standards used in scipy were used to identify the
needed style fixups.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
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.
|