From a1bcef62b8789577542120470d8fb9ded4633d8f Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Sat, 28 Feb 2026 07:51:58 -0500 Subject: [PATCH 1/2] use L1 norm for drop tolerance --- src/interp.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interp.jl b/src/interp.jl index d8c405d..bfce593 100644 --- a/src/interp.jl +++ b/src/interp.jl @@ -72,7 +72,7 @@ infnorm(x::Number) = abs(x) infnorm(x::AbstractArray) = maximum(abs, x) function droptol(coefs::Array{<:Any,N}, tol::Real) where {N} - abstol = maximum(infnorm, coefs) * tol # absolute tolerance + abstol = sum(infnorm, coefs) * tol # absolute tolerance = L1 norm * tol all(c -> infnorm(c) ≥ abstol, coefs) && return coefs # nothing to drop # compute the new size along each dimension by checking From 00b2803cecde2865186807f8819a6257c3047c08 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Sat, 28 Feb 2026 07:57:16 -0500 Subject: [PATCH 2/2] update CI --- .github/workflows/CI.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 256ed57..1c88168 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -23,24 +23,15 @@ jobs: arch: - x64 steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v5 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: actions/cache@v1 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- + - uses: julia-actions/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - - uses: codecov/codecov-action@v1 + - uses: codecov/codecov-action@v5 with: file: lcov.info