Skip to content

Commit

Permalink
fix: eltype of N in spline coefficients to allow working with dual nu…
Browse files Browse the repository at this point in the history
…mbers
  • Loading branch information
sathvikbhagavan committed Apr 19, 2024
1 parent 0641b69 commit cab086f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interpolation_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function findRequiredIdxs(A::LagrangeInterpolation, t)
end

function spline_coefficients(n, d, k, u::Number)
N = zeros(n)
N = zeros(eltype(u), n)
if u == k[1]
N[1] = one(u)
elseif u == k[end]
Expand Down

0 comments on commit cab086f

Please sign in to comment.