JuliaArrays / JuliaArrays/StaticArrays.jl

Hybrid static and regular multidimensional array

Open
#353 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

design feature
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.