You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`gradient` and `gradient!`|`ForwardDiffADGradient`/`GenericForwardDiffADGradient`|`ReverseDiffADGradient`/`GenericReverseDiffADGradient`|`ZygoteADGradient`|`EnzymeReverseADGradient`| -- |
Copy file name to clipboardExpand all lines: docs/src/sparse.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ H = hess(nlp, x)
34
34
35
35
## Options for sparsity pattern detection and coloring
36
36
37
-
The backends available for sparse derivatives (`SparseADJacobian`, `SparseEnzymeADJacobian`, `SparseADHessian`, `SparseReverseADHessian`, and `SparseEnzymeADHessian`) allow for customization through keyword arguments such as `detector` and `coloring_algorithm`.
37
+
The backends available for sparse derivatives (`SparseADJacobian`, `SparseReverseADJacobian`, `SparseEnzymeADJacobian`, `SparseADHessian`, `SparseReverseADHessian`, and `SparseEnzymeADHessian`) allow for customization through keyword arguments such as `detector` and `coloring_algorithm`.
38
38
These arguments specify the sparsity pattern detector and the coloring algorithm, respectively.
39
39
40
40
- A **`detector`** must be of type `ADTypes.AbstractSparsityDetector`.
@@ -53,7 +53,7 @@ set_adbackend!(
53
53
```
54
54
55
55
- A **`coloring_algorithm`** must be of type `SparseMatrixColorings.GreedyColoringAlgorithm`.
56
-
The default algorithm is `GreedyColoringAlgorithm{:direct}()` for `SparseADJacobian`, `SparseEnzymeADJacobian` and `SparseADHessian`, while it is `GreedyColoringAlgorithm{:substitution}()` for `SparseReverseADHessian` and `SparseEnzymeADHessian`.
56
+
The default algorithm is `GreedyColoringAlgorithm{:direct}()` for `SparseADJacobian`, `SparseADReverseJacobian`, `SparseEnzymeADJacobian` and `SparseADHessian`, while it is `GreedyColoringAlgorithm{:substitution}()` for `SparseReverseADHessian` and `SparseEnzymeADHessian`.
57
57
These algorithms are provided by the package `SparseMatrixColorings.jl`.
0 commit comments