def _div(self, o): if not isinstance(o, _valid_types): return NotImplemented sh = self.ufl_shape if sh: ii = indices(len(sh)) d = Division(self[ii], o) return as_tensor(d, ii) return Division(self, o)
def _rdiv(self, o): if not isinstance(o, _valid_types): return NotImplemented return Division(o, self)