Skip to content

Fix #920 #921

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jun 20, 2021
Merged

Fix #920 #921

merged 4 commits into from
Jun 20, 2021

Conversation

mateuszbaran
Copy link
Collaborator

This fixes the ambiguity on Julia master reported in issue #920 .

@mateuszbaran mateuszbaran linked an issue Jun 10, 2021 that may be closed by this pull request
@thchr
Copy link
Collaborator

thchr commented Jun 19, 2021

This also fixes this related regression:

using StaticArrays

A  = [1 3 5; 9 7 2; 6 8 4]
SA = SMatrix{3,3}(A)

v  = [1,2,3]
sv = SVector{3}(v)

A\v   # works ≈ [-0.2111, 0.5888, -0.111]
SA\sv # works ...
A\sv  # works ...
SA\v  # throws `MethodError: lu(::SMatrix{3, 3, Float64, 9}, ::Val{true}) is ambiguous.`

with a similar error for e.g. A/SA.

Would be nice to merge this and tag a new minor release maybe (e.g., to fix CI failures on downstream packages).

@mateuszbaran mateuszbaran merged commit 52f2f96 into master Jun 20, 2021
@mateuszbaran mateuszbaran deleted the mbaran/fix-lu-ambiguity branch June 20, 2021 16:35
thchr pushed a commit to thchr/StaticArrays.jl that referenced this pull request Jul 8, 2021
* Fix JuliaArrays#920

* if needs to be static

* bump version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lu seems to be ambiguous on Julia Nightly
2 participants