We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fbb04d commit 03df353Copy full SHA for 03df353
1 file changed
src/gradient_free_optimizers/_array_backend/_pure.py
@@ -589,7 +589,11 @@ def flatten(self):
589
def ravel(self):
590
return self.flatten()
591
592
- def reshape(self, shape):
+ def reshape(self, *args):
593
+ if len(args) == 1:
594
+ shape = args[0]
595
+ else:
596
+ shape = args
597
if isinstance(shape, int):
598
shape = (shape,)
599
neg_idx = None
@@ -720,6 +724,12 @@ def argmin(self, axis=None):
720
724
return best_i
721
725
raise NotImplementedError("Axis-aware argmin not implemented")
722
726
727
+ def any(self):
728
+ return _any(self._data)
729
+
730
+ def all(self):
731
+ return _all(self._data)
732
723
733
734
_eq = operator.eq
735
_ne = operator.ne
0 commit comments