Skip to content

Spline generation is type unstable #45

Description

@rafaqz

We have multipile ntuple calls with length based on run-time values. This cant be type-stable by definition.

basis_function_values = ntuple(
k -> (k == degree_plus_1) ? one(T) : zero(T),
degree_plus_2
)

This instability is the majority cost of running spline interpolation. It can be fixed by moving degree to the type and making sure the +1 and +2 also compiles away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions