JuliaArrays / JuliaArrays/ArrayInterface.jl
Handling wrapped arrays
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 140
- Forks
- 44
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 5
Description
Today I gave up on something...
function DiffEqBase.get_tmp(dc::DiffEqBase.DiffCache, u::LabelledArrays.LArray{T,N,D,Syms}) where {T,N,D,Syms}
x = reinterpret(T, dc.dual_du.__x)
LArray{T,N,D,Syms}(x)
end
we need a better way to handle things like reinterpret and reshape on array types that are actually just wrapping another array type.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the DiffEqBase.get_tmp example involving DiffEqBase.DiffCache and LabelledArrays.LArray, then examine how reinterpret and reshape are expected to work for array types that wrap another array type. Done means defining and implementing a better way for ArrayInterface.jl to handle those wrapped-array operations.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100