Skip to content

Gridded interpolation with single knot #497

@jaemolihm

Description

@jaemolihm

length(k1) == 1 && error("dimensions of length 1 not yet supported") # FIXME

In this line of gridded.jl, length(k1) == 1 is disabled. But when I just remove that line, I get expected behavior:

f = interpolate(([1.],), [5.], Gridded(Constant()))
@test bounds(f) == ((1., 1.),)
@test f(1.) == 5.0
@test_throws BoundsError f(nextfloat(1.))
@test_throws BoundsError f(prevfloat(1.))

Can we just remove that line? Or is there something not implemented?

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