-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add basic documentation #6
Conversation
This is mostly copying what's in comments in the code into actual doc files along with the existing docstrings. I've also added a couple of basic docstrings.
`nothing` is returned. | ||
|
||
See also: [`rrule`](@ref) | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
frule
returns a tuple of AbstractRule
s - one for each of the function's outputs.
Similarly, rrule
returns a tuple of AbstractRule
s, one for each of the function's inputs.
If the returned tuple would only contain a single AbstractRule
, the single AbstractRule
may be returned directly (basically just matching Julia's return
behavior).
docs/src/rules.md
Outdated
end | ||
return fx, dx | ||
end | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This kind of thing definitely belongs in an advanced usage section :)
Thanks for kicking the tires here! I'll add some commits to this branch as well; I've settled on a notation for certain parts of these, so I'll update |
…o remove dev notes until we can restructure them into an advanced tips section
This is mostly copying what's in comments in the code into actual doc files along with the existing docstrings. I've also added a couple of basic docstrings.