You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-13
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@ from the Julia REPL.
39
39
40
40
## General usage
41
41
42
+
Note: the current version of `Interpolations` supports interpolation evaluation using index calls `[]`, but this feature will be deprecated in future. We highly recommend function calls with `()` as follows.
43
+
42
44
Given an `AbstractArray``A`, construct an "interpolation object" `itp` as
43
45
```jl
44
46
itp =interpolate(A, options...)
@@ -49,7 +51,7 @@ samples in `A` are equally-spaced.
49
51
50
52
To evaluate the interpolation at position `(x, y, ...)`, simply do
51
53
```jl
52
-
v = itp[x, y, ...]
54
+
v =itp(x, y, ...)
53
55
```
54
56
55
57
Some interpolation objects support computation of the gradient, which
lbound(sitp::ScaledInterpolation{T,N,ITPT,IT,OnGrid}, d) where {T,N,ITPT,IT} =1<= d <= N ? sitp.ranges[d][1] :throw(BoundsError())
50
54
lbound(sitp::ScaledInterpolation{T,N,ITPT,IT,OnCell}, d) where {T,N,ITPT,IT} =1<= d <= N ? sitp.ranges[d][1] -boundstep(sitp.ranges[d]) :throw(BoundsError())
0 commit comments