JuliaArrays / JuliaArrays/StaticArrays.jl
circshift(SArray) returns MArray
Open
Nobody has claimed this yet.
feature
- Dominant language
- Julia
- Stars
- 844
- Forks
- 159
- Avg merge
- 3d 21h
- Merged PRs (30d)
- 3
Description
Example:
julia> sv = SVector(1,2,3);
julia> circshift(sv, 1)
3-element MArray{Tuple{3},Int64,1,3} with indices SOneTo(3):
3
1
2
I think the result should be 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
Reproduce the circshift(SVector(1,2,3), 1) example from the issue and inspect the circshift implementation and related tests in StaticArrays.jl. The work is done when the operation returns an SArray rather than an MArray while preserving the shown shifted values, with a regression test covering the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- julia
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100