JuliaArrays / JuliaArrays/ArrayInterface.jl

Bug in `strides` of reshaped adjoint/transposed arrays

Open
#162 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
140
Forks
44
Avg merge
4d 14h
Merged PRs (30d)
5

Description

Reported by @chriselrod in https://github.com/JuliaArrays/ArrayInterface.jl/pull/161#discussion_r643907939:

julia> using ArrayInterface

julia> A = rand(5,12);

julia> B = reshape(A', (3,4,5));

julia> ArrayInterface.strides(B) # @chriselrod: should be `(5,15,StaticInt{1}())`
(static(1), 3, 12)

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

Reproduce the Julia example from the issue using ArrayInterface.strides on the reshaped adjoint array B. Trace the strides implementation and its handling of reshape and transpose, then verify that the result is (5, 15, StaticInt{1}()) for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.