timholy / Grid.jl

Interpolation and related operations on grids
MIT License
47 stars 26 forks source link

Allows to use different range types for `CoordInterpGrid()` #40

Closed scheidan closed 10 years ago

scheidan commented 10 years ago

Allows to use different range types for CoordInterpGrid(). For example:

x = 2:10             # UnitRange
y = 5.0:0.2:10.0 # FloatRange
z = Float64[sin(i+j) for i in x, j in y]

cg = CoordInterpGrid((x,y),z,BCnil,InterpQuadratic)
cg[2,5.0]

Before the same type for x and y was required.