From 4d7c9f3cf3ef013846881ca5e3b57f3dc5c70da8 Mon Sep 17 00:00:00 2001 From: Tim Holy Date: Tue, 10 Mar 2026 06:47:40 -0500 Subject: [PATCH] Remove LoopVectorization (for now) LV provides a substantial speed boost but also makes the package more fragile. Remove it for now. --- Project.toml | 1 - src/ScaleInvariantAnalysis.jl | 1 - src/covers.jl | 4 ++-- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Project.toml b/Project.toml index 7a3cdb7..22a69a3 100644 --- a/Project.toml +++ b/Project.toml @@ -5,7 +5,6 @@ version = "1.0.0-DEV" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" -LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890" PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" diff --git a/src/ScaleInvariantAnalysis.jl b/src/ScaleInvariantAnalysis.jl index 7579d19..b64c038 100644 --- a/src/ScaleInvariantAnalysis.jl +++ b/src/ScaleInvariantAnalysis.jl @@ -2,7 +2,6 @@ module ScaleInvariantAnalysis using LinearAlgebra using SparseArrays -using LoopVectorization using PrecompileTools export cover_lobjective, cover_qobjective, cover, symcover, symdiagcover, cover_lmin, symcover_lmin, cover_qmin, symcover_qmin diff --git a/src/covers.jl b/src/covers.jl index 1cf7cda..59b7bad 100644 --- a/src/covers.jl +++ b/src/covers.jl @@ -309,7 +309,7 @@ function tighten_cover!(a::AbstractVector{T}, A::AbstractMatrix; iter::Int=3, ex aratio[j] = aratioj end else - @turbo for j in eachindex(a) + for j in eachindex(a) aratioj, aj = aratio[j], a[j] for i in eachindex(a) Aij = T(abs(A[i, j])) @@ -333,7 +333,7 @@ function tighten_cover!(a::AbstractVector{T}, b::AbstractVector{T}, A::AbstractM for _ in 1:iter fill!(aratio, typemax(T)) fill!(bratio, typemax(T)) - @turbo for j in eachindex(b) + for j in eachindex(b) bratioj, bj = bratio[j], b[j] for i in eachindex(a) Aij = T(abs(A[i, j]))