Skip to content

Do not fall back to inplace interpolation method#394

Merged
ChrisRackauckas merged 3 commits intomasterfrom
dw/get_u
Feb 7, 2025
Merged

Do not fall back to inplace interpolation method#394
ChrisRackauckas merged 3 commits intomasterfrom
dw/get_u

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