Skip to content

Cleanup #408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/derivatives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ function _extrapolate_derivative_left(A, t, order)
elseif extrapolation_left == ExtrapolationType.Constant
zero(first(A.u) / one(A.t[1]))
elseif extrapolation_left == ExtrapolationType.Linear
_derivative(A, first(A.t), 1)
zero(first(A.u) / one(A.t[1]))
(order == 1) ? _derivative(A, first(A.t), 1) : zero(first(A.u) / one(A.t[1]))
elseif extrapolation_left == ExtrapolationType.Extension
(order == 1) ? _derivative(A, t, length(A.t)) :
Expand Down Expand Up @@ -66,7 +64,7 @@ function _extrapolate_derivative_right(A, t, order)
_derivative(A, t, A.iguesser)
end, t_)
else
# extrapolation_left == ExtrapolationType.Reflective
# extrapolation_right == ExtrapolationType.Reflective
t_, n = transformation_reflective(A, t)
sign = iseven(n) ? -1 : 1
(order == 1) ? sign * _derivative(A, t_, A.iguesser) :
Expand Down Expand Up @@ -314,4 +312,4 @@ function _derivative(
out += Δt₀^2 *
(3c₁ + (3Δt₁ + Δt₀) * c₂ + (3Δt₁^2 + Δt₀ * 2Δt₁) * c₃)
out
end
end
2 changes: 1 addition & 1 deletion src/integral_inverses.jl
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,4 @@ function _interpolate(
idx_ = get_idx(A, t, idx; side = :first, lb = 1, ub_shift = 0)
end
A.u[idx] + (t - A.t[idx]) / A.itp.u[idx_]
end
end
2 changes: 1 addition & 1 deletion src/interpolation_methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,4 @@ function _interpolate(
c₁, c₂, c₃ = get_parameters(A, idx)
out += Δt₀^3 * (c₁ + Δt₁ * (c₂ + c₃ * Δt₁))
out
end
end
Loading