Closed miguelbiron closed 2 years ago
What version of Interpolations.jl were you von and what version are you on now?
@N5N3 this results in an infinite recursion:
https://github.com/JuliaMath/Interpolations.jl/blame/master/src/gpu_support.jl#L68
This might fix the problem. I will test it thoroughly later this week.
import Interpolations: MonotonicInterpolation, root_storage_type
Interpolations.root_storage_type(::Type{T}) where {T<:MonotonicInterpolation} = root_storage_type(fieldtype(T, 2))
julia> itp_cdf.(t)
601-element Vector{Float64}:
0.0
0.0
0.0
0.0
0.0
0.0
0.0
⋮
100.0
100.0
100.0
100.0
100.0
100.0
Opps.
root_storage_type
was added only because BroadcastStyle
for OffsetArray
always returns a DefaultArrayStyle
. (And of cource we should not do type piratcy here)
Edit: we should just add a default fallback for AbstractInterpolation
.
@N5N3 let me know if you can send a pull request. Otherwise, I will get to this towards the end of the week.
First of all, thank you for such a great package! Now, I wanted to report an issue that arose when updating to the latest release of
Interpolations
. Basically, dot-broadcasting is broken -- at least forSteffenMonotonicInterpolation
. Simple example:The full trace of the error I get in the two cases is
Version information