ndarray.byteswap()

ndarray.byteswap(inplace) Swap the bytes of the array elements Toggle between low-endian and big-endian data representation by returning a byteswapped array, optionally swapped in-place. Parameters: inplace : bool, optional If True, swap bytes in-place, default is False. Returns: out : ndarray The byteswapped array. If inplace is True, this is a view to self. Examples >>> A = np.array([1, 256, 8755], dtype=np.int16) >>> map(hex, A) ['0x1', '0x100', '0x2233'] >&g

MaskedArray.__imod__

MaskedArray.__imod__ x.__imod__(y) <==> x%=y

MaskedArray.unshare_mask()

MaskedArray.unshare_mask() [source] Copy the mask and set the sharedmask flag to False. Whether the mask is shared between masked arrays can be seen from the sharedmask property. unshare_mask ensures the mask is not shared. A copy of the mask is only made if it was shared. See also sharedmask

matrix.dtype

matrix.dtype Data-type of the array?s elements. Parameters: None Returns: d : numpy dtype object See also numpy.dtype Examples >>> x array([[0, 1], [2, 3]]) >>> x.dtype dtype('int32') >>> type(x.dtype) <type 'numpy.dtype'>

numpy.linalg.pinv()

numpy.linalg.pinv(a, rcond=1e-15) [source] Compute the (Moore-Penrose) pseudo-inverse of a matrix. Calculate the generalized inverse of a matrix using its singular-value decomposition (SVD) and including all large singular values. Parameters: a : (M, N) array_like Matrix to be pseudo-inverted. rcond : float Cutoff for small singular values. Singular values smaller (in modulus) than rcond * largest_singular_value (again, in modulus) are set to zero. Returns: B : (N, M) ndarray The ps

numpy.asanyarray()

numpy.asanyarray(a, dtype=None, order=None) [source] Convert the input to an ndarray, but pass ndarray subclasses through. Parameters: a : array_like Input data, in any form that can be converted to an array. This includes scalars, lists, lists of tuples, tuples, tuples of tuples, tuples of lists, and ndarrays. dtype : data-type, optional By default, the data-type is inferred from the input data. order : {?C?, ?F?}, optional Whether to use row-major (C-style) or column-major (Fortran-

numpy.ma.atleast_2d()

numpy.ma.atleast_2d(*arys) = View inputs as arrays with at least two dimensions. Parameters: arys1, arys2, ... : array_like One or more array-like sequences. Non-array inputs are converted to arrays. Arrays that already have two or more dimensions are preserved. Returns: res, res2, ... : ndarray An array, or tuple of arrays, each with a.ndim >= 2. Copies are avoided where possible, and views with two or more dimensions are returned. Notes The function is applied to both the _dat

numpy.polynomial.hermite.hermval3d()

numpy.polynomial.hermite.hermval3d(x, y, z, c) [source] Evaluate a 3-D Hermite series at points (x, y, z). This function returns the values: The parameters x, y, and z are converted to arrays only if they are tuples or a lists, otherwise they are treated as a scalars and they must have the same shape after conversion. In either case, either x, y, and z or their elements must support multiplication and addition both with themselves and with the elements of c. If c has fewer than 3 dimensi

numpy.arccosh()

numpy.arccosh(x[, out]) = Inverse hyperbolic cosine, element-wise. Parameters: x : array_like Input array. out : ndarray, optional Array of the same shape as x, to store results in. See doc.ufuncs (Section ?Output arguments?) for details. Returns: arccosh : ndarray Array of the same shape as x. See also cosh, arcsinh, sinh, arctanh, tanh Notes arccosh is a multivalued function: for each x there are infinitely many numbers z such that cosh(z) = x. The convention is to return the

numpy.ma.loads()

numpy.ma.loads(strg) [source] Load a pickle from the current string. The result of cPickle.loads(strg) is returned. Parameters: strg : str The string to load. See also dumps Return a string corresponding to the pickling of a masked array.