Skip to content

interpolate: periodic scalar splines ignore x_min in wrapping #203

@krystophny

Description

@krystophny

Periodic scalar spline evaluation currently wraps x via modulo(x, period) instead of modulo(x - x_min, period) + x_min. This breaks periodic behavior when x_min != 0 and the caller evaluates outside [x_min, x_max].

Affected (scalar) entry points:

  • evaluate_splines_1d / _der / _der2
  • evaluate_splines_2d / _der
  • evaluate_splines_3d / _der / _der2

Expected:

  • For periodic splines, x should be wrapped relative to x_min: xj = modulo(x - x_min, period) + x_min.

Status:

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