JuliaArrays / JuliaArrays/StaticArrays.jl

static interface for permutedims

Open
#806 11 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

arrays feature
Dominant language
Julia
Stars
844
Forks
159
Avg merge
3d 21h
Merged PRs (30d)
3

Description

I would like to contribute an implementation for permutedims, but first I would like to ask for suggestions about the interface.

In particular, it would be ideal if one could encode the permutation statically. I could imagine a

struct StaticPermutation{N}
    permuation::NTuple{N,Int}
    ## optionally: constructor that verifies validity
end

type and an interface like

permutedims(sarray, StaticPermutation(2, 3, 1))

but I am interested in suggestions if there is a better solution.

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

Start with the existing permutedims implementation in src/abstractarray.jl at the linked location, then review the proposed StaticPermutation{N} interface in the issue. The work is not ready for implementation until the interface is agreed on; done would mean a decided static permutation API and an implementation plan.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.