JuliaArrays / JuliaArrays/StackViews.jl

The size of StackView over scalars?

Open
#3 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

julia> StackView([rand(3,4),rand(3,4)]) |> size
(3, 4, 2)

julia> StackView([rand(3),rand(3)]) |> size
(3, 2)

julia> StackView([3, 3]) |> size
(2, 1)

Shouldn't the last one be of size (2,)?

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 three StackView size examples in Julia and inspect the package's size behavior for scalar elements. Review the five existing comments for the intended convention, then confirm the chosen behavior with a regression test; done means the scalar case consistently reports the agreed dimensionality.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.