From f6fffb9295717146856083a0fb32549409e52583 Mon Sep 17 00:00:00 2001 From: "C. Brenhin Keller" Date: Wed, 12 Jun 2024 21:06:20 -0400 Subject: [PATCH] Remove LoopVectorization dependency --- Project.toml | 9 +++------ src/NaNStatistics.jl | 9 ++------- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Project.toml b/Project.toml index 9663ca1..fe882ef 100644 --- a/Project.toml +++ b/Project.toml @@ -4,16 +4,13 @@ authors = ["C. Brenhin Keller"] version = "0.6.35" [deps] -IfElse = "615f187c-cbe4-4ef1-ba3b-2fcf58d6d173" -LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890" +ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9" PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a" Static = "aedffcd0-7271-4cad-89d0-dc628f76c6d3" -VectorizationBase = "3d5dd08c-fd9d-11e8-17fa-ed2836048c2f" +StaticArrayInterface = "0d7ed370-da01-4f52-bd93-41d350b8b718" [compat] -IfElse = "0.1" -LoopVectorization = "0.12.113" -VectorizationBase = "0.21.0 - 0.21.64" PrecompileTools = "1" Static = "0.8" +StaticArrayInterface = "1" julia = "1.8" diff --git a/src/NaNStatistics.jl b/src/NaNStatistics.jl index 6399f42..4c15cf0 100644 --- a/src/NaNStatistics.jl +++ b/src/NaNStatistics.jl @@ -1,16 +1,11 @@ module NaNStatistics - # AVX vectorziation tools - using IfElse: ifelse - using LoopVectorization - using Static const IntOrStaticInt = Union{Integer, StaticInt} - const PrimitiveFloat = Union{Float16, Float32, Float64} - const PrimitiveInteger = Union{Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128} - const PrimitiveNumber = Union{PrimitiveFloat, PrimitiveInteger} _dim(::Type{StaticInt{N}}) where {N} = N::Int + using StaticArrayInterface: indices + include("ArrayStats/ArrayStats.jl") include("ArrayStats/nanmean.jl") include("ArrayStats/nansum.jl")