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

Do not fall back to inplace interpolation method #394

Merged
merged 3 commits into from
Feb 7, 2025
Merged

Conversation

devmotion
Copy link
Member

Fixes #388.

function (interp::AbstractInterpolation)(u::AbstractMatrix, t::AbstractVector)
@inbounds for i in eachindex(t)
u[:, i] = interp(t[i])
function (interp::AbstractInterpolation)(u::AbstractVector, t::AbstractVector)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick question here, would it be clearer to name this argument something like out instead of u?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, probably. I just kept the existing code here.

@ChrisRackauckas ChrisRackauckas merged commit b983363 into master Feb 7, 2025
17 checks passed
@ChrisRackauckas ChrisRackauckas deleted the dw/get_u branch February 7, 2025 13:59
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.

Inconsistent output eltype when evaluating on vectors
3 participants