Did I find the right examples for you? yes no

# numpy.oldnumeric.maximum.reduce

All Samples(12)  |  Call(12)  |  Derive(0)  |  Import(0)
```reduce(a, axis=0, dtype=None, out=None, keepdims=False)

Reduces `a`'s dimension by one, by applying ufunc along one axis.

Let :math:`a.shape = (N_0, ..., N_i, ..., N_{M-1})`.  Then
:math:`ufunc.reduce(a, axis=i)[k_0, ..,k_{i-1}, k_{i+1}, .., k_{M-1}]` =
the result of iterating `j` over :math:`range(N_i)`, cumulatively applying
ufunc to each :math:`a[k_0, ..,k_{i-1}, j, k_{i+1}, .., k_{M-1}]`.
For a one-dimensional array, reduce produces results equivalent to:
::(more...)
```

```def histogram(data, nbins, range = None):
data = Numeric.array(data, Numeric.Float)
if range is None:
min = Numeric.minimum.reduce(data)
max = Numeric.maximum.reduce(data)
```

```            px, py = self.points[i]
self.points[i] = (px, d-py)
alpha_max= Numeric.maximum.reduce(self.alpha_arr)
self.alpha_arr = (self.alpha_arr*(-1)+alpha_max).astype(Numeric.Int16)
shapes = [0,1]
```

```    def getSideLengths(self, mol):
c = mol.allAtoms.coords
maxo = Numeric.maximum.reduce(c)
mino = Numeric.minimum.reduce(c)
sideLengths = maxo-mino
```
```    def getSideLengths(self, mol):
c = mol.allAtoms.coords
maxo = Numeric.maximum.reduce(c)
mino = Numeric.minimum.reduce(c)
sideLengths = maxo-mino
```

```    mol.elist = Numeric.array(elist)
mol.r = [Numeric.minimum.reduce(mol.elist),
Numeric.maximum.reduce(mol.elist)]
mol.nbins = Tkinter.IntVar()
mol.nbins.set(10)
```

```def histogram(data, nbins, range = None):
data = Numeric.array(data, Numeric.Float)
if range is None:
min = Numeric.minimum.reduce(data)
max = Numeric.maximum.reduce(data)
```

```def getSideLengths(mol, spacing):
c = mol.allAtoms.coords
maxo = Numeric.maximum.reduce(c)
mino = Numeric.minimum.reduce(c)
sideLengths = maxo-mino
```

```            mol.elist = Numeric.array(elist)
mol.r = [Numeric.minimum.reduce(mol.elist),
Numeric.maximum.reduce(mol.elist)]
mol.nbins = Tkinter.IntVar(master=self.vf.GUI.ROOT)
mol.nbins.set(10)
```

```def histogram(data, nbins, range = None):
data = Numeric.array(data, Numeric.Float)
if range is None:
min = Numeric.minimum.reduce(data)
max = Numeric.maximum.reduce(data)
```

```def histogram(data, nbins, range = None):
data = Numeric.array(data, Numeric.Float)
if range is None:
min = Numeric.minimum.reduce(data)
max = Numeric.maximum.reduce(data)
```

```def histogram(data, nbins, range = None):