Skip to content

Structural non-allocating array-like interpolation #401

Open
@SouthEndMusic

Description

@SouthEndMusic

I have the following 🍇 about the current implementation:

  • Array-valued interpolations are allocating;
  • Different methods for scalar and array interpolation per interpolation type yields code duplication;
  • Support for array-valued interpolation is inconsistent.

As far as I'm aware, for every interpolation type the array-valued interpolation can be defined by a per-index scalar interpolation.

I propose:

  • Array Interpolation objects get a pre-allocated value, derivative and integral on which computations are done in-place;
  • We define a function get_u(A.u, i) which gets the appropriate view of a slice of u.

Related issues:

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