Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed May 23, 2024
1 parent 5cde92d commit ef16130
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions DifferentiationInterface/docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ using Zygote: Zygote
links = InterLinks(
"ADTypes" => "https://sciml.github.io/ADTypes.jl/stable/",
"SparseConnectivityTracer" => "https://adrianhill.de/SparseConnectivityTracer.jl/stable/",
"SparseMatrixColorings" => "https://gdalle.github.io/SparseMatrixColorings.jl/stable/",
)

cp(joinpath(@__DIR__, "..", "README.md"), joinpath(@__DIR__, "src", "index.md"); force=true)
Expand Down
5 changes: 3 additions & 2 deletions DifferentiationInterface/docs/src/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,14 @@ To compute sparse Jacobians or Hessians, you need three ingredients (read [this
- [`TracerSparsityDetector`](@extref SparseConnectivityTracer.TracerSparsityDetector), implemented by [SparseConnectivityTracer.jl](https://github.com/adrhill/SparseConnectivityTracer.jl) (our default recommendation)
- [`SymbolicsSparsityDetector`](@ref DifferentiationInterface.SymbolicsSparsityDetector), implemented by DifferentiationInterface.jl with [Symbolics.jl](https://github.com/JuliaSymbolics/Symbolics.jl) but not exported nor part of the public API (it will soon be [transferred](https://github.com/JuliaSymbolics/Symbolics.jl/pull/1134))
3. A coloring algorithm like:
- [`GreedyColoringAlgorithm`](@ref), implemented by DifferentiationInterface.jl
- [`GreedyColoringAlgorithm`](@extref SparseMatrixColorings), implemented by [SparseMatrixColorings.jl](https://github.com/gdalle/SparseMatrixColorings.jl) and re-exported by DifferentiationInterface.jl

ADTypes.jl v1.0 provides the [`AutoSparse`](@extref ADTypes.AutoSparse) wrapper to combine these three ingredients, and DifferentiationInterface.jl re-exports it.
Here's an example:

```@example tuto
using SparseConnectivityTracer
using SparseConnectivityTracer: TracerSparsityDetector
using SparseMatrixColorings: GreedyColoringAlgorithm
dense_backend = AutoForwardDiff()
Expand Down

0 comments on commit ef16130

Please sign in to comment.