Skip to content

Commit 0dac817

Browse files
committed
Merge branch 'master' into albop/code_generation
2 parents d41b8ba + f4e89d6 commit 0dac817

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ eval_linear(grid, values, points) # 10000 vector
5050
out = np.zeros(10000)
5151
eval_linear(grid, values, points, out) # 10000 vector
5252

53+
## jitted, non-uniform multilinear interpolation
5354

5455
# default calls extrapolate data by using the nearest value inside the grid
5556
# other extrapolation options can be chosen among NEAREST, LINEAR, CONSTANT
@@ -140,9 +141,9 @@ This is for compatibility purpose only, until a new jittable model object is fou
140141
from interpolation.splines import LinearSpline, CubicSpline
141142
a = np.array([0.0,0.0,0.0]) # lower boundaries
142143
b = np.array([1.0,1.0,1.0]) # upper boundaries
143-
orders = np.array([50,50,50]) # 10 points along each dimension
144+
orders = np.array([50,50,50]) # 50 points along each dimension
144145
values = np.random.random(orders) # values at each node of the grid
145-
S = np.random.random((10^6,3)) # coordinates at which to evaluate the splines
146+
S = np.random.random((10**6,3)) # coordinates at which to evaluate the splines
146147

147148
# multilinear
148149
lin = LinearSpline(a,b,orders,values)

0 commit comments

Comments
 (0)