Skip to content

Commit

Permalink
fix(LinearInterpolation): remove added dispatch for AbstractMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutosh-b-b committed Oct 3, 2024
1 parent a837b3d commit 3e0b6b2
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/interpolation_methods.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,6 @@ function _interpolate(A::LinearInterpolation{<:AbstractArray}, t::Number, iguess
return A.u[ax..., idx] + slope * Δt
end

function _interpolate(A::LinearInterpolation{<:AbstractMatrix}, t::Number, iguess)
idx = get_idx(A, t, iguess)
Δt = t - A.t[idx]
slope = get_parameters(A, idx)
ax = axes(A.u)[1:(end - 1)]
return @views A.u[ax..., idx][:] + slope[:] * Δt
end

# Quadratic Interpolation
_quad_interp_indices(A, t) = _quad_interp_indices(A, t, firstindex(A.t) - 1)
function _quad_interp_indices(A::QuadraticInterpolation, t::Number, iguess)
Expand Down

0 comments on commit 3e0b6b2

Please sign in to comment.