File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ Define a new differentiation rule for the function `f` and the given arguments,
1313be treated as bindings to Julia expressions.
1414
1515The RHS should be a function call with a non-splatted argument list, and the LHS should be
16- the derivative expression, or in the `n`-ary case, and `n`-tuple of expressions where the
17- `i`th expression is the derivative of `f` w.r.t the `i`th argument. Arguments should
16+ the derivative expression, or in the `n`-ary case, an `n`-tuple of expressions where the
17+ `i`th expression is the derivative of `f` w.r.t the `i`th argument. Arguments should be
1818interpolated wherever they are used on the RHS.
1919
20- This rule is purely symbolic - no type annotations should be used.
20+ Note that differentiation rules are purely symbolic, so no type annotations should be used.
2121
2222Examples:
2323
@@ -67,7 +67,7 @@ diffrule(f::Symbol, args...) = DiffRule{f}(args...)
6767"""
6868 hasdiffrule(f::Symbol, arity::Int)
6969
70- Return `true` if a differentiation rule is defined for `f` and `arity`, or returns `false`
70+ Return `true` if a differentiation rule is defined for `f` and `arity`, or return `false`
7171otherwise.
7272
7373Here, `arity` refers to the number of arguments accepted by `f`.
You can’t perform that action at this time.
0 commit comments