JuliaArrays / JuliaArrays/StaticArrays.jl
Hybrid static and regular multidimensional array
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 844
- Forks
- 159
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 3
Description
It seems like a common pattern to have big arrays of small arrays (e.g. 3 x N x N) and to accelerate this by converting to an array of static arrays (N x N array of SVectors of size 3). This works very well, but requires an API change: arr[:,i,j] -> arr[i,j]. Would it be possible with indexing overloading to have a type of array of SArrays such that arr[:,i,j] is an SArray?
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
The issue names no files or tests; start by tracing the existing indexing-overloading and SArray APIs in StaticArrays.jl. Done means determining whether a hybrid array type can support arr[:,i,j] returning an SArray while preserving the proposed performance benefits and documenting the resulting API behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data, performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100