refactor!: migrate to modern numpy API, patch root solving, and bump dependencies #27

Merged
jono merged 2 commits from v0.8.0 into main 2026-09-26 16:31:18 +00:00
Owner
  • Drop support for Python 3.8 & 3.9.
  • Bump minimum dependencies to numpy>=2.0 and numba>=0.60.
  • Add integral method to calculate the indefinite integral (antiderivative)
    using the modern API's built-in .integ() support.
  • Replace legacy NumPy polynomial functions (polyder, polyadd, etc.) with
    the modern numpy.polynomial.Polynomial class for stable calculus and
    arithmetic operations.
  • Remove _strip_leading_zeros as the modern API handles degree alignment
    and zero-trimming natively.
  • Retain highest-to-lowest self.coefficients array to maintain compatibility
    with Numba and CUDA GPU kernels evaluating via Horner's method.
  • Fix TypeError in quadratic_solve by evaluating b.real >= 0 to safely
    support complex coefficients.
  • Update quadratic_solve return type hint to np.ndarray.
- Drop support for Python 3.8 & 3.9. - Bump minimum dependencies to `numpy>=2.0` and `numba>=0.60`. - Add `integral` method to calculate the indefinite integral (antiderivative) using the modern API's built-in `.integ()` support. - Replace legacy NumPy polynomial functions (polyder, polyadd, etc.) with the modern `numpy.polynomial.Polynomial` class for stable calculus and arithmetic operations. - Remove `_strip_leading_zeros` as the modern API handles degree alignment and zero-trimming natively. - Retain highest-to-lowest `self.coefficients` array to maintain compatibility with Numba and CUDA GPU kernels evaluating via Horner's method. - Fix `TypeError` in `quadratic_solve` by evaluating `b.real >= 0` to safely support complex coefficients. - Update `quadratic_solve` return type hint to `np.ndarray`.
jono added 1 commit 2026-09-26 15:42:06 +00:00
refactor!: migrate to modern numpy API, patch root solving, and bump dependencies
Run Python Tests / test (3.10) (pull_request) Successful in 21s
Run Python Tests / test (3.12) (pull_request) Successful in 26s
Run Python Tests / test (3.14) (pull_request) Successful in 20s
563fb440a3
- Drop support for Python 3.8.
- Bump minimum dependencies to `numpy>=2.0` and `numba>=0.60`.
- Replace legacy NumPy polynomial functions (polyder, polyadd, etc.) with
  the modern `numpy.polynomial.Polynomial` class for stable calculus and
  arithmetic operations.
- Remove `_strip_leading_zeros` as the modern API handles degree alignment
  and zero-trimming natively.
- Retain highest-to-lowest `self.coefficients` array to maintain compatibility
  with Numba and CUDA GPU kernels evaluating via Horner's method.
- Fix `TypeError` in `quadratic_solve` by evaluating `b.real >= 0` to safely
  support complex coefficients.
- Update `quadratic_solve` return type hint to `np.ndarray`.
jono added 1 commit 2026-09-26 16:05:02 +00:00
Update README and tests for new integral function
Publish Python Package to PyPI / deploy (push) Successful in 13s
Run Python Tests / test (3.10) (pull_request) Successful in 20s
Run Python Tests / test (3.12) (pull_request) Successful in 7s
Run Python Tests / test (3.14) (pull_request) Successful in 20s
2fa219f860
jono merged commit 2fa219f860 into main 2026-09-26 16:31:18 +00:00
jono deleted branch v0.8.0 2026-09-26 16:31:18 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jono/PolySolve#27