Skip to content

Hessian of CubicSplineInterpolation broken? #268

Closed
@dkarrasch

Description

@dkarrasch

The following

using Interpolations
A = rand(20, 10)
xs = 1:20
ys = 1:10
f = CubicSplineInterpolation((xs,ys), A)
Interpolations.hessian(f, 2.5, 6.7)

throws

ERROR: StackOverflowError:
[1] hessian(::Interpolations.Extrapolation{Float64,2,ScaledInterpolation{Float64,2,Interpolations.BSplineInterpolation{Float64,2,OffsetArrays.OffsetArray{Float64,2,Array{Float64,2}},BSpline{Cubic{Line{OnGrid}}},Tuple{Base.OneTo{Int64},Base.OneTo{Int64}}},BSpline{Cubic{Line{OnGrid}}},Tuple{UnitRange{Int64},UnitRange{Int64}}},BSpline{Cubic{Line{OnGrid}}},Throw{Nothing}}, ::Float64, ::Float64) 
at /Users/karrasch/.julia/packages/Interpolations/wGqjI/src/Interpolations.jl:371 (repeats 80000 times)

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