Skip to content

Conversation

@tomasaschan
Copy link
Contributor

I realized that for quadratic interpolation, Flat (first derivative equal to zero
at edges) and Reflect (all continuous derivatives equal to zero at edges) are equivalent,
since the first derivative is the only continuous one for quadratic interpolation.
This just adds the Reflect option so you can do

itp = Interpolation(A, Quadratic(Reflect(), OnCell()), ExtrapReflect())

which feels a little more intuitive than using Flat even though they're the same.

tomasaschan pushed a commit that referenced this pull request Jan 2, 2015
Reflecting BC for quadratic itp
@tomasaschan tomasaschan merged commit 6daa6f7 into master Jan 2, 2015
@tomasaschan tomasaschan mentioned this pull request Jan 2, 2015
17 tasks
@tomasaschan tomasaschan deleted the reflect-bc branch September 18, 2015 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants