Did I find the right examples for you? yes no

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

src/o/r/Orange-Bioinformatics-2.5.25/orangecontrib/bio/widgets/numpyExtn.py   Orange-Bioinformatics(Download)
    """
    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)
    nonMaskedInd = Numeric.compress(1-Numeric.ravel(MA.getmaskarray(ma)), Numeric.arange(Numeric.multiply.reduce(ma.shape)))
    return MA.filled(ma.compressed()), nonMaskedInd
 

src/o/r/Orange-Bioinformatics-2.5.25/orangecontrib/bio/widgets/chipimpute.py   Orange-Bioinformatics(Download)
    shp_other.pop(axis)
    # get a transposed and reshaped mask and data from m; if m.mask() == None, construct a new array of zeros
    mask = Numeric.reshape(Numeric.transpose(MA.getmaskarray(m), [axis] + range(0,axis) + range(axis+1,len(m.shape))), (m.shape[axis], Numeric.multiply.reduce(shp_other)))
    data = MA.reshape(MA.transpose(m, [axis] + range(0,axis) + range(axis+1,len(m.shape))), (m.shape[axis], Numeric.multiply.reduce(shp_other)))
    maskInv = -1*(mask-1)

src/o/r/Orange-Bioinformatics-2.5.25/orangecontrib/bio/widgets/prototypes/OWImputeProfiles.py   Orange-Bioinformatics(Download)
            # 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))
                    numValsNonMasked += int(MA.count(etm))
                    self._chipdataMA[-1][1].append(etm)

src/o/r/Orange-Bioinformatics-2.5.25/orangecontrib/bio/widgets/prototypes/OWDataDistance.py   Orange-Bioinformatics(Download)
    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

src/v/i/visionegg-1.2.1/VisionEgg/__init__.py   visionegg(Download)
                                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:

src/v/i/visionegg-HEAD/VisionEgg/__init__.py   visionegg(Download)
                                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: