Skip to content
Snippets Groups Projects

added the one_over method to MutliField

Merged Reimar H Leike requested to merge add_one_over into NIFTy_6
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
+ 3
0
@@ -310,6 +310,9 @@ class MultiField(object):
res[key] = -val if neg else val
return MultiField.from_dict(res)
def one_over(self):
return 1/self
def _binary_op(self, other, op):
f = getattr(Field, op)
if isinstance(other, MultiField):
Loading