Skip to content

Commit 52f2f96

Browse files
authored
Fix #920 (#921)
* Fix #920 * if needs to be static * bump version
1 parent 088636d commit 52f2f96

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "StaticArrays"
22
uuid = "90137ffa-7385-5640-81b9-e52037218182"
3-
version = "1.2.3"
3+
version = "1.2.4"
44

55
[deps]
66
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

src/lu.jl

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ function lu(A::StaticMatrix{N,N}, pivot::Union{Val{false},Val{true}}=Val(true);
4343
LU(LowerTriangular(L), UpperTriangular(U), p)
4444
end
4545

46+
@static if VERSION >= v"1.7-DEV"
47+
# disambiguation
48+
function lu(A::StaticMatrix{N,N}, pivot::Val{true}) where {N}
49+
Base.@invoke lu(A::StaticMatrix{N,N} where N, pivot::Union{Val{false},Val{true}})
50+
end
51+
end
52+
4653
# location of the first zero on the diagonal, 0 when not found
4754
function _first_zero_on_diagonal(A::StaticMatrix{M,N,T}) where {M,N,T}
4855
if @generated

0 commit comments

Comments
 (0)