Skip to content

Commit

Permalink
Remove LoopVectorization dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
brenhinkeller committed Jun 13, 2024
1 parent a815f87 commit f6fffb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
9 changes: 3 additions & 6 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
9 changes: 2 additions & 7 deletions src/NaNStatistics.jl
Original file line number Diff line number Diff line change
@@ -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")
Expand Down

0 comments on commit f6fffb9

Please sign in to comment.