mcabbott / mcabbott/TensorCast.jl

Support for AxisKeys

Open
#68 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
142
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I would like to keep track of dimensions with AxisKeys through my tensorcast. Would that be possible?

let a = KeyedArray(reshape(1:6, 2, 3); time=1:2, place=1:3)
    # The ticks are \prime not single-quote.
    @cast b[time=i, time′=i′, place=j, place′=j′] := a[time=i, place=j] + a[time=i′, place=j′]
end

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 by locating the @cast macro and the handling of KeyedArray inputs in TensorCast.jl. Use the AxisKeys example in the issue to determine how dimension names and ticks should propagate through the tensorcast expression. Done means the example preserves the requested time, time′, place, and place′ axes with their associated keys.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.