JuliaArrays / JuliaArrays/StaticArrays.jl

`LinearAlgebra.det_bareiss()` fails for `SMatrix`

Open
#1,105 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

The Bareiss algorithm is used by default for BigInt determinants, and gives exact determinants for integer matrices. It's pretty straightforward to overload LinearAlgebra.det_bareiss(::SMatrix) in other code, but I figured it would not be a bad idea to integrate this into StaticArrays.

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 locating LinearAlgebra.det_bareiss and the SMatrix determinant methods in StaticArrays.jl, then compare how determinant operations are currently dispatched. Done means det_bareiss accepts SMatrix values and preserves exact determinant behavior for integer matrices; add or update focused tests if the existing determinant tests cover this area.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 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.