Skip to content

Commit f55049b

Browse files
committed
Make sparsity and coloring interfaces public
1 parent f206682 commit f55049b

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
name = "ADTypes"
22
uuid = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
3-
authors = [
4-
"Vaibhav Dixit <[email protected]>, Guillaume Dalle and contributors",
5-
]
3+
authors = ["Vaibhav Dixit <[email protected]>, Guillaume Dalle and contributors"]
64
version = "1.7.1"
75

86
[deps]
97
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
8+
Compat = "34da2185-b29b-5c13-b0c7-acf172513d20"
109
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
1110

1211
[weakdeps]
@@ -19,6 +18,7 @@ ADTypesEnzymeCoreExt = "EnzymeCore"
1918

2019
[compat]
2120
ChainRulesCore = "1.0.2"
21+
Compat = "3.47, 4.10"
2222
EnzymeCore = "0.5.3,0.6,0.7"
2323
julia = "1.6"
2424

src/ADTypes.jl

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
module ADTypes
77

88
using Base: @deprecate
9+
using Compat: @compat # for `public`
910

1011
"""
1112
AbstractADType
@@ -30,8 +31,8 @@ if !isdefined(Base, :get_extension)
3031
include("../ext/ADTypesEnzymeCoreExt.jl")
3132
end
3233

34+
# Automatic Differentiation
3335
export AbstractADType
34-
3536
export AutoChainRules,
3637
AutoDiffractor,
3738
AutoEnzyme,
@@ -46,9 +47,21 @@ export AutoChainRules,
4647
AutoTapir,
4748
AutoTracker,
4849
AutoZygote
49-
5050
export AutoSparse
5151

52+
# Sparsity detection
53+
export AbstractSparsityDetector
54+
export jacobian_sparsity, hessian_sparsity
55+
@compat public sparsity_detector
56+
@compat public NoSparsityDetector
57+
@compat public KnownJacobianSparsityDetector, KnownHessianSparsityDetector
58+
59+
# Matrix coloring
60+
export AbstractColoringAlgorithm
61+
export column_coloring, row_coloring, symmetric_coloring
62+
@compat public coloring_algorithm
63+
@compat public NoColoringAlgorithm
64+
5265
# legacy exports are taken care of by @deprecated
5366

5467
end

0 commit comments

Comments
 (0)