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

fixes

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