Skip to content
This repository was archived by the owner on Feb 9, 2020. It is now read-only.

CoordInterpGrid: specify location and scale of coordinates#14

Merged
timholy merged 2 commits intotimholy:masterfrom
simonbyrne:coord
Apr 19, 2014
Merged

CoordInterpGrid: specify location and scale of coordinates#14
timholy merged 2 commits intotimholy:masterfrom
simonbyrne:coord

Conversation

@simonbyrne
Copy link
Collaborator

This adds the ability to specify location and scale of an interpolation: see discussion on mailing list.

One-dimensional usage simply requires specifying the range as first argument:

x = -1.0:0.1:1.0
z = sin(x)

cg = CoordInterpGrid(x,z,BCnil,InterpQuadratic)

Multi-dimensional the ranges are specified as a tuple

cg = CoordInterpGrid((x,y),z,BCnil,InterpQuadratic)

Gradient calculations are also supported via valgrad.

@timholy
Copy link
Owner

timholy commented Apr 19, 2014

First-rate work, @simonbyrne. Many thanks!

timholy added a commit that referenced this pull request Apr 19, 2014
CoordInterpGrid: specify location and scale of coordinates
@timholy timholy merged commit f018d0d into timholy:master Apr 19, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments