Skip to content

Vectorize theoretical.cdf_from_ppf with scipy.optimize.elementwise.bracket_root on scipy>=1.15 #362

@jorenham

Description

@jorenham

It's guaranteeed to find a bracket if the function is monotonic, which is (or should be) the case for quantile functions (i.e. the ppf argument of cdf_from_ppf).

According to the (upcoming) release notes:

Compared to existing functions (e.g.scipy.optimize.root_scalar and scipy.optimize.minimize_scalar), these functions can offer speedups of over 100x when used with NumPy arrays, and even greater gains are possible with other Array API Standard compatible array libraries (e.g. CuPy).

docs

SciPy 1.15.0 "final" is expected to be released on 2025-01-06.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformanceRuntime performance and benchmarking

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions