示例#1
0
 def _ad_copy(self):
     r = get_overloaded_class(backend.Function)(self.function_space())
     backend.Function.assign(r, self)
     return r
示例#2
0
 def _ad_add(self, other):
     r = get_overloaded_class(backend.Function)(self.function_space())
     backend.Function.assign(r, self + other)
     return r