What is this line attempting to do? I mean, what type that can be passed to Array but not hcat is it attempting to convert?
My proposed fix would be something like probs[i].p isa AbstractArray ? Array(probs[i].p) : probs[i].p but it's hard to judge if that would do the expected thing.
Further down the line the broadcasting over the problem also seems to result in SubArrays of structs rather than structs, so the problem runs a bit deeper than this.
We have a problem type that uses structs for parameters, which currently doesn't work with this package. This seems to be the offending line:
https://github.com/SciML/DiffEqGPU.jl/blob/dddcb594ce054c0677bc1b18fdabca2fc0c2eaa9/src/DiffEqGPU.jl#L675
What is this line attempting to do? I mean, what type that can be passed to
Array
but nothcat
is it attempting to convert?My proposed fix would be something like
probs[i].p isa AbstractArray ? Array(probs[i].p) : probs[i].p
but it's hard to judge if that would do the expected thing.