Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reflecting BC for quadratic itp #20

Merged
merged 1 commit into from
Jan 2, 2015
Merged

Reflecting BC for quadratic itp #20

merged 1 commit into from
Jan 2, 2015

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.

1 participant