JuliaArrays / JuliaArrays/StaticArrays.jl

Type stability of SVector / SMatrix

Open
#1,278 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

From https://github.com/EnzymeAD/Enzyme.jl/issues/1805

@SVector([0.0, 0.0, 0.00]) / @SMatrix([1.0]) has a return type of Union{MVector{3, Float64}, SMatrix{3, 1, Float64, 3}, MMatrix{3, 1, Float64, 3}}

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 reproducing the @SVector([0.0, 0.0, 0.00]) / @SMatrix([1.0]) expression and inspect how its return type is inferred. Trace the involved StaticArrays operations and compare the result with the expected stable type; done means the reported union no longer occurs for this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.