numpy / numpy/numtype

generic `numpy.polynomial` classes

Open
#232 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

numpy.polynomial.* stubs: Enhancement
Dominant language
Python
Stars
79
Forks
8
PR merge metrics
No merged PRs in 30d

Description

It currently isn't narrow enough to be able to be passed to e.g. scipy.optimize.minimize_scalar, which requires a (float64) -> float64 or (float) -> float callable. See https://github.com/scipy/scipy-stubs/issues/465#issuecomment-2696142441 for more details.

This requires knowing the dtype of the coefficients, so the polynomial classes should be made generic.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the numpy.polynomial classes and the linked scipy-stubs discussion to understand the required callable signatures and coefficient dtypes. Done means the polynomial classes are generic over coefficient dtype and can satisfy the stated float and float64 callable requirements.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.