We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
getindex
MWE:
julia> using SciMLBase julia> EnsembleSolution(ones(2), 0.0, false, nothing)[:] 2-element Vector{Float64}: 1.0 1.0 julia> EnsembleSolution(ones(1), 0.0, false, nothing)[:] ERROR: MethodError: no method matching reshape(::Float64, ::Int64) Closest candidates are: reshape(::RecursiveArrayTools.AbstractVectorOfArray, ::Any...) @ RecursiveArrayTools ~/.julia/packages/RecursiveArrayTools/kqKNI/src/vector_of_array.jl:687 reshape(::FillArrays.AbstractFill, ::Union{Colon, Integer}...) @ FillArrays ~/.julia/packages/FillArrays/oXkMk/src/FillArrays.jl:260 reshape(::AbstractArray, ::Int64...) @ Base reshapedarray.jl:117 ... Stacktrace: [1] _getindex @ ~/.julia/packages/RecursiveArrayTools/kqKNI/src/vector_of_array.jl:278 [inlined] [2] getindex(::EnsembleSolution{Float64, 1, Vector{Float64}}, ::Function) @ RecursiveArrayTools ~/.julia/packages/RecursiveArrayTools/kqKNI/src/vector_of_array.jl:393 [3] top-level scope @ REPL[13]:1
This is because in the following line reduce(hcat, vecs) is not type stable:
reduce(hcat, vecs)
RecursiveArrayTools.jl/src/vector_of_array.jl
Line 279 in 87337d8
However, Array seems to work fine:
Array
julia> Array(EnsembleSolution(ones(1), 0.0, false, nothing)) 1-element Vector{Float64}: 1.0
so the getindex(A, ::Colon...) method should probably get replaced with Array
getindex(A, ::Colon...)
The text was updated successfully, but these errors were encountered:
Update vector_of_array.jl
49d6742
Fix SciML#354
1fc5cd1
Successfully merging a pull request may close this issue.
MWE:
This is because in the following line
reduce(hcat, vecs)
is not type stable:RecursiveArrayTools.jl/src/vector_of_array.jl
Line 279 in 87337d8
However,
Array
seems to work fine:so the
getindex(A, ::Colon...)
method should probably get replaced withArray
The text was updated successfully, but these errors were encountered: