Ejemplo n.º 1
0
 def _ad_copy(self):
     r = get_overloaded_class(backend.Function)(self.function_space())
     backend.Function.assign(r, self)
     return r
Ejemplo n.º 2
0
 def _ad_add(self, other):
     r = get_overloaded_class(backend.Function)(self.function_space())
     backend.Function.assign(r, self + other)
     return r