numpy.triu_indices()

numpy.triu_indices(n, k=0, m=None) [source] Return the indices for the upper-triangle of an (n, m) array. Parameters: n : int The size of the arrays for which the returned indices will be valid. k : int, optional Diagonal offset (see triu for details). m : int, optional New in version 1.9.0. The column dimension of the arrays for which the returned arrays will be valid. By default m is taken equal to n. Returns: inds : tuple, shape(2) of ndarrays, shape(n) The indices for the tr

RandomState.poisson()

RandomState.poisson(lam=1.0, size=None) Draw samples from a Poisson distribution. The Poisson distribution is the limit of the binomial distribution for large N. Parameters: lam : float or sequence of float Expectation of interval, should be >= 0. A sequence of expectation intervals must be broadcastable over the requested size. size : int or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which case

MaskedArray.__nonzero__

MaskedArray.__nonzero__ x.__nonzero__() <==> x != 0

generic.round()

generic.round() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, all the attributes of the ndarray class so as to provide a uniform API. See also The

MaskedArray.view()

MaskedArray.view(dtype=None, type=None) [source] New view of array with the same data. Parameters: dtype : data-type or ndarray sub-class, optional Data-type descriptor of the returned view, e.g., float32 or int16. The default, None, results in the view having the same data-type as a. This argument can also be specified as an ndarray sub-class, which then specifies the type of the returned object (this is equivalent to setting the type parameter). type : Python type, optional Type of th

recarray.min()

recarray.min(axis=None, out=None, keepdims=False) Return the minimum along a given axis. Refer to numpy.amin for full documentation. See also numpy.amin equivalent function

numpy.linalg.matrix_rank()

numpy.linalg.matrix_rank(M, tol=None) [source] Return matrix rank of array using SVD method Rank of the array is the number of SVD singular values of the array that are greater than tol. Parameters: M : {(M,), (M, N)} array_like array of <=2 dimensions tol : {None, float}, optional threshold below which SVD values are considered zero. If tol is None, and S is an array with singular values for M, and eps is the epsilon value for datatype of S, then tol is set to S.max() * max(M.shape)

ndarray.__floordiv__

ndarray.__floordiv__ x.__floordiv__(y) <==> x//y

record.base

record.base base object

numpy.ma.dumps()

numpy.ma.dumps(a) [source] Return a string corresponding to the pickling of a masked array. This is a wrapper around cPickle.dumps. Parameters: a : MaskedArray The array for which the string representation of the pickle is returned.