Skip to content

Evalutate multiple interpolations/derivatives simultaneously #431

@bclyons12

Description

@bclyons12

Is your feature request related to a problem? Please describe.

In a performance critical part of my code, I'm evaluating multiple interpolations at the same t location. Internally, this leads to lots of repeated calculations, since most of time in _interpolate is spent on lines that only depend on t and A.t. Here's a VScode profiling, with the blue bars showing the time spent on each line.

Image

Describe the solution you’d like

It would be good to have some standard method for evaluating multiple interpolations with the same A.t grid at the same t location simultaneously so that the most computationally intensive lines are not unnecessarily recomputed. Likewise I am taking derivatives at the same point, which again reuses things like get_idx(), so having this standard method work with derivatives would be great as well.

Describe alternatives you’ve considered

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions