Skip to content

Commit 36f9dc0

Browse files
Merge pull request #242 from sathvikbhagavan/sb/bspline_derivative
fix: eltype of N in `spline_coefficients` to allow working with dual numbers
2 parents 0641b69 + cab086f commit 36f9dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interpolation_utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function findRequiredIdxs(A::LagrangeInterpolation, t)
44
end
55

66
function spline_coefficients(n, d, k, u::Number)
7-
N = zeros(n)
7+
N = zeros(eltype(u), n)
88
if u == k[1]
99
N[1] = one(u)
1010
elseif u == k[end]

0 commit comments

Comments
 (0)