From 3e0b6b20ef8d8dc9ecc03ec3a30beea8cf2ab23e Mon Sep 17 00:00:00 2001 From: Ashutosh Bharambe Date: Thu, 3 Oct 2024 13:33:48 +0000 Subject: [PATCH] fix(LinearInterpolation): remove added dispatch for AbstractMatrix --- src/interpolation_methods.jl | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/interpolation_methods.jl b/src/interpolation_methods.jl index 54621d5d..03adf558 100644 --- a/src/interpolation_methods.jl +++ b/src/interpolation_methods.jl @@ -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)