Did I find the right examples for you? yes no

# numpy.oldnumeric.multiply.reduce

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)

```    """
m = MA.asarray(m)
return Numeric.compress(MA.equal(MA.ravel(m),val), Numeric.arange(Numeric.multiply.reduce(m.shape)))

def getIndices(m, val):
```
```    assert MA.rank(m2d) == 2, "2D (masked) array expected"
if upper:
takeInd = Numeric.compress(Numeric.ravel(Numeric.fromfunction(lambda i,j: i<j, m2d.shape)), Numeric.arange(0, Numeric.multiply.reduce(m2d.shape), typecode=Numeric.Int))
else:
takeInd = Numeric.compress(Numeric.ravel(Numeric.fromfunction(lambda i,j: i>j, m2d.shape)), Numeric.arange(0, Numeric.multiply.reduce(m2d.shape), typecode=Numeric.Int))
```
```    assert MA.rank(m1d) == 1 and MA.rank(m2d) == 2, "1D and 2D masked array expected"
assert m1d.shape[0] == m2d.shape[0] == m2d.shape[1], "the shape of the given arrays does not match"
putIndices = Numeric.compress(Numeric.ravel(Numeric.fromfunction(lambda i,j: i==j, m2d.shape)), Numeric.arange(0, Numeric.multiply.reduce(m2d.shape), typecode=Numeric.Int))
m2dShape = m2d.shape
m2d = MA.ravel(m2d)
```
```    """
ma = MA.asarray(ma)

```

```    shp_other.pop(axis)
# get a transposed and reshaped mask and data from m; if m.mask() == None, construct a new array of zeros
data = MA.reshape(MA.transpose(m, [axis] + range(0,axis) + range(axis+1,len(m.shape))), (m.shape[axis], Numeric.multiply.reduce(shp_other)))
```

```            # info text
self.infoa.setText("Examples: %i profiles on %i points" % (self._dataMA.shape[0], self._dataMA.shape[1]))
numTotalMissing = int(Numeric.multiply.reduce(self._dataMA.shape) - MA.count(self._dataMA))
if numTotalMissing > 0:
numValsByCol = MA.count(self._dataMA, 0)
```
```                    numColMissing += etm.shape[1] - colNonMissingInd.shape[0]
self.numRowsMissingChipData += int(Numeric.add.reduce(Numeric.less(MA.count(etm.take(colNonMissingInd, 1), 1), etm.shape[1])))
numValsAll += int(Numeric.multiply.reduce(etm.shape))
self._chipdataMA[-1][1].append(etm)
```

```    distSpearFunc = _distSpearmanW_NU
for var in (x,y,w):
if type(var) == MA.array and MA.count(var) != Numeric.multiply.reduce(var.shape):
distSpearFunc = _distSpearmanW_MA
break
```

```                                value_str = str(value)
else:
if Numeric.multiply.reduce(value.shape) < 10:
value_str = str(value) # print array if it's smallish
else:
```
```                                value_str = str(value)
else:
if Numeric.multiply.reduce(value.shape) < 10:
value_str = str(value) # print array if it's smallish
else:
```

```                                value_str = str(value)
else:
if Numeric.multiply.reduce(value.shape) < 10:
value_str = str(value) # print array if it's smallish
else:
```
```                                value_str = str(value)
else:
if Numeric.multiply.reduce(value.shape) < 10:
value_str = str(value) # print array if it's smallish
else:
```