Skip to content

generic numpy.polynomial classes #232

Open

Description

@jorenham

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 scipy/scipy-stubs#465 (comment) for more details.

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

Activity

  1. added theissue type on Mar 4, 2025
  2. changed the title [-]narrow the `__call__` return type of the `numpy.polynomial` classes[/-] [+]generic `numpy.polynomial` classes[/+] on Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions