File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -35,19 +35,19 @@ function (interp::AbstractInterpolation)(t::AbstractVector)
3535 end
3636end
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
4444end
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
5151end
5252
5353const EXTRAPOLATION_ERROR = " Cannot extrapolate as `extrapolate` keyword passed was `false`"
You can’t perform that action at this time.
0 commit comments