Skip to content

Commit

Permalink
Merge pull request #242 from sathvikbhagavan/sb/bspline_derivative
Browse files Browse the repository at this point in the history
fix: eltype of N in `spline_coefficients` to allow working with dual numbers
  • Loading branch information
ChrisRackauckas authored Apr 19, 2024
2 parents 0641b69 + cab086f commit 36f9dc0
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 36f9dc0

Please sign in to comment.