Skip to content

feat: add caching for vanishing polynomial evaluations in LagrangeInterpolator #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PivasDesant
Copy link

Description

Implements caching for vanishing polynomial evaluations to avoid redundant computations when interpolating at the same point multiple times.

  • Add vp_cache: RefCell<HashMap<F, F>> field
  • Implement caching logic in compute_lagrange_coefficients
  • Add test to verify caching functionality
  • All existing tests pass (150+ tests)

Closes: TODO comment in lagrange_interpolator.rs

@PivasDesant PivasDesant requested a review from a team as a code owner August 14, 2025 18:26
@PivasDesant PivasDesant requested review from z-tech, Pratyush and mmagician and removed request for a team August 14, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant