-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dolci/test concatenatevec tao #1
Dolci/test concatenatevec tao #1
Conversation
Co-authored-by: James R. Maddison <[email protected]>
Co-authored-by: James R. Maddison <[email protected]>
pyadjoint/overloaded_type.py
Outdated
def _ad_assign(self, other): | ||
"""This method must be overridden. | ||
|
||
The method should implement a routine for assigning the values from | ||
another object `other` to `self`. | ||
|
||
Args: | ||
value (obj): The object which should be assigned to `self`. | ||
""" | ||
raise NotImplementedError | ||
|
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 am stealing your idea.
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.
Only needed for mutable types (AdjFloat
is immutable).
I think it's quicker for me to edit after merging into my fork. |
Yes. I agree. |
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.
If you make any changes (e.g. for the _ad_to_petsc
) then we can go ahead and merge here.
I think you can merge. FYI, I am using this firedrake branch: firedrakeproject/firedrake#3657 |
No description provided.