mcabbott / mcabbott/TensorCast.jl
Indices which run over a shorter range than `axes(A,d)`
Open
Nobody has claimed this yet.
- Dominant language
- Julia
- Stars
- 142
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
why doesn't this work?
P = rand(3,4,100)
@cast H[k][i,j] := P[i,j,k] (i in 1:3, j in 1:3, k in 1:100)
It fails with
DimensionMismatch("range of index j must agree")
Probably i am missing something basic.
Thanks.
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
Start with the reported @cast expression using P = rand(3,4,100), and inspect how index ranges are checked against axes(A,d). Determine whether the shorter j range should be accepted or rejected, then document the expected behavior or add a regression test for this 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
- Needs clarification
- Newbie friendliness
- 35/100