Skip to content

Commit bdaeb26

Browse files
authored
Merge pull request #190 from JuliaDiff/ox/nostatsbase
stop depending on StatsBase
2 parents 3df2687 + 070d372 commit bdaeb26

File tree

4 files changed

+9
-56
lines changed

4 files changed

+9
-56
lines changed

Manifest.toml

Lines changed: 1 addition & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Project.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
1212
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
1313
PrecompileTools = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
1414
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
15-
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
1615
StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"
1716

1817
[compat]
@@ -23,6 +22,5 @@ Cthulhu = "2"
2322
OffsetArrays = "1"
2423
PrecompileTools = "1"
2524
StaticArrays = "1"
26-
StatsBase = "0.33"
2725
StructArrays = "0.6"
2826
julia = "1.10"

src/higher_fwd_rules.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Combinatorics
2-
using StatsBase
32

43
using Base.Iterators
54

src/jet.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,14 @@ expressions for the t′ᵢ that are hopefully easier on the compiler.
239239
end...)
240240
end
241241

242+
function countmap(xs)
243+
counts = Dict{eltype(xs), Int}()
244+
for x in xs
245+
counts[x] = get(counts, x, 0) + 1
246+
end
247+
return counts
248+
end
249+
242250
@generated function (j::Jet{T, N} where T)(x::TaylorBundle{M}) where {N, M}
243251
O = min(M,N)
244252
quote

0 commit comments

Comments
 (0)