Skip to content

Commit

Permalink
remove unneeded division
Browse files Browse the repository at this point in the history
  • Loading branch information
jer-j committed Jul 5, 2024
1 parent 2bdf568 commit 41c4b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PCHIPInterpolation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function _pchip_ds_scipy(xs::AbstractVector, ys::AbstractVector)
Δ(i) = (ys[i+1] - ys[i]) / h(i)

length(ys) != length(xs) && throw(DimensionMismatch)
ds = similar(ys ./ xs)
ds = similar(ys)

is = eachindex(xs, ys, ds)

Expand Down

0 comments on commit 41c4b41

Please sign in to comment.