JuliaArrays / JuliaArrays/StaticArrays.jl

All dispatches of static arrays with factorizations are missing

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

Nobody has claimed this yet.

bug feature linear-algebra
Dominant language
Julia
Stars
844
Forks
159
Avg merge
3d 21h
Merged PRs (30d)
3

Description

For example, while you can build the lu(A), every use of it errors:

using StaticArrays, LinearAlgebra
A = @SMatrix rand(3,3)
Alu = lu(A)
c = rand(3)

b = rand(3)
Alu \ b
Alu / b
ldiv!(c,Alu,b)
b = @SVector rand(3)
Alu \ b
Alu / b
ldiv!(c,Alu,b)
b = @MVector rand(3)
Alu \ b
Alu / b
ldiv!(c,Alu,b)

c = @MVector rand(3)

b = rand(3)
Alu \ b
Alu / b
ldiv!(c,Alu,b)
b = @SVector rand(3)
Alu \ b
Alu / b
ldiv!(c,Alu,b)
b = @MVector rand(3)
Alu \ b
Alu / b
ldiv!(c,Alu,b)

This is likely true for the other factorizations as well. Quick test:

Alu = qr(A)
c = rand(3)
b = rand(3)
Alu \ b

There should be a way to programmatically do this and copy Base.

xref: https://github.com/JuliaDiffEq/DifferentialEquations.jl/issues/339

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 Julia examples for lu(A), qr(A), , /, and ldiv! with the shown StaticArrays vector types. Inspect the dispatches for factorization operations and verify that the listed combinations, along with the other factorizations mentioned, work consistently when done.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
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.