diff --git a/.github/workflows/format_check.yml b/.github/workflows/format_check.yml index 45a41cf8..c2665cb3 100644 --- a/.github/workflows/format_check.yml +++ b/.github/workflows/format_check.yml @@ -14,12 +14,12 @@ jobs: - uses: julia-actions/setup-julia@latest with: version: '1' - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Format check shell: julia --color=yes {0} run: | using Pkg - Pkg.add(PackageSpec(name="JuliaFormatter", version="1")) + Pkg.add(PackageSpec(name="JuliaFormatter", version="2")) using JuliaFormatter format("src", verbose=true) format("test", verbose=true) diff --git a/src/det.jl b/src/det.jl index 66cd8dce..f39d77f6 100644 --- a/src/det.jl +++ b/src/det.jl @@ -2,8 +2,8 @@ function LinearAlgebra.det(M::Matrix{<:AbstractPolynomialLike}) m = size(M)[1] if m > 2 return sum( - (-1)^(i - 1) * M[i, 1] * LinearAlgebra.det(M[1:end.!=i, 2:end]) for - i in 1:m + (-1)^(i - 1) * M[i, 1] * LinearAlgebra.det(M[1:end .!= i, 2:end]) + for i in 1:m ) elseif m == 2 return M[1, 1] * M[2, 2] - M[2, 1] * M[1, 2]