-
Notifications
You must be signed in to change notification settings - Fork 9
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
Tangent Interface Docs #434
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
🚀 New features to boost your workflow:
|
Performance Ratio:
|
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.
I haven't tried to implement a tangent type and use these functions, so couldn't verify claims like If all the tests in these functions pass, then you have satisfied the interface.
All the comments are only cosmetic.
But this is clearly a really good clarification!
Signed-off-by: Will Tebbutt <[email protected]>
@willtebbutt I've had a look at these docs and tried to implement the interface for a custom type. I was almost able to, but in particular I had to add methods for
in addition to those in the interface. I also ran into problems with a generated function, which I didn't find a way around. I've put a MWE in this notebook: https://jollywatt.github.io/notes/mooncake-self-tangents |
Thanks -- I'll take a look at your notebook! |
@Jollywatt @willtebbutt I suggest that you take a look at #428 (comment) as part of "integration testing" this PR's completeness and accuracy. Defining a macro that can help users extend tangent types for their Julia types will be nice. |
…t splitting
@Jollywatt sorry for taking so long to get this fixed. I believe I've addressed the issues that you mentioned above. In particular, I've added the binary version of Could you let me know if you think this is sufficient? If so, I'll merge this. |
@willtebbutt I'm just having another shot at implementing the tangent interface following the docstring for Last time, Am I meant to use |
Ah, yes, you're definitely meant to test on the |
@Jollywatt I think that the docstring should now be accurate. |
@Jollywatt per our discussion elsewhere, here is a stab at aggregating all of the information that I have about the tangent interface into a single location. When you get a minute, could you let me know if this is the kind of thing that you need to do what you wanted to do, or if there's additional info that you'll need?