Commit 8bf014cf authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'multidomain_size' into 'NIFTy_5'

now multidomain has size property

See merge request ift/nifty-dev!134
parents 641b1b37 c488934f
......@@ -103,6 +103,10 @@ class MultiDomain(object):
def __ne__(self, x):
return not self.__eq__(x)
def size(self):
return sum(dom.size for dom in self._domains)
def __str__(self):
res = "MultiDomain:\n"
for key, dom in zip(self._keys, self._domains):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment