Skip to content

Commit

Permalink
Update src/rule_definition_tools.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Lyndon White <oxinabox@ucc.asn.au>
  • Loading branch information
mzgubic and oxinabox authored May 27, 2021
1 parent 4ca0f15 commit 08453d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rule_definition_tools.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ derivative/setup expressions.
This macro assumes complex functions are holomorphic. In general, for non-holomorphic
functions, the `frule` and `rrule` must be defined manually.
Prefer using `true` over `1.0` to express multiplicative identity.
If the derivative is one, (e.g. for identity functions) `true` can be used as the most
general multiplicative identity.
The `@setup` argument can be elided if no setup code is need. In other
words:
Expand Down

0 comments on commit 08453d5

Please sign in to comment.