Commit 1509dfd8 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fixes

parent 746a9122
Pipeline #23475 passed with stage
in 4 minutes and 39 seconds
...@@ -238,6 +238,8 @@ class data_object(object): ...@@ -238,6 +238,8 @@ class data_object(object):
def any(self): def any(self):
return self.sum() != 0 return self.sum() != 0
def fill(self, value):
self._data.fill(value)
def full(shape, fill_value, dtype=None, distaxis=0): def full(shape, fill_value, dtype=None, distaxis=0):
return data_object(shape, np.full(local_shape(shape, distaxis), return data_object(shape, np.full(local_shape(shape, distaxis),
......
...@@ -45,9 +45,9 @@ class SumOperator(LinearOperator): ...@@ -45,9 +45,9 @@ class SumOperator(LinearOperator):
if isinstance(op, SumOperator): if isinstance(op, SumOperator):
opsnew += op._ops opsnew += op._ops
if ng: if ng:
negnew += [not n for n in ops._neg] negnew += [not n for n in op._neg]
else: else:
negnew += list(ops._neg) negnew += list(op._neg)
else: else:
opsnew.append(op) opsnew.append(op)
negnew.append(ng) negnew.append(ng)
......
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