Skip to content

Commit e3cfc01

Browse files
authored
Rename variable
1 parent 109174b commit e3cfc01

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/DataInterpolations.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ function (interp::AbstractInterpolation)(t::AbstractVector)
3535
end
3636
end
3737

38-
function (interp::AbstractInterpolation)(u::AbstractVector, t::AbstractVector)
39-
if length(u) != length(t)
38+
function (interp::AbstractInterpolation)(out::AbstractVector, t::AbstractVector)
39+
if length(out) != length(t)
4040
throw(DimensionMismatch("number of evaluation points and length of the result vector must be equal"))
4141
end
42-
map!(interp, u, t)
43-
return u
42+
map!(interp, out, t)
43+
return out
4444
end
45-
function (interp::AbstractInterpolation)(u::AbstractArray, t::AbstractVector)
46-
if size(u, ndims(u)) != length(t)
45+
function (interp::AbstractInterpolation)(out::AbstractArray, t::AbstractVector)
46+
if size(out, ndims(out)) != length(t)
4747
throw(DimensionMismatch("number of evaluation points and last dimension of the result array must be equal"))
4848
end
49-
map!(interp, eachslice(u; dims = ndims(u)), t)
50-
return u
49+
map!(interp, eachslice(out; dims = ndims(out)), t)
50+
return out
5151
end
5252

5353
const EXTRAPOLATION_ERROR = "Cannot extrapolate as `extrapolate` keyword passed was `false`"

0 commit comments

Comments
 (0)