numpy.polynomial.polynomial.polycompanion()

numpy.polynomial.polynomial.polycompanion(c) [source] Return the companion matrix of c. The companion matrix for power series cannot be made symmetric by scaling the basis, so this function differs from those for the orthogonal polynomials. Parameters: c : array_like 1-D array of polynomial coefficients ordered from low to high degree. Returns: mat : ndarray Companion matrix of dimensions (deg, deg). Notes New in version 1.7.0.

numpy.ma.squeeze()

numpy.ma.squeeze(a, axis=None) [source] Remove single-dimensional entries from the shape of an array. Parameters: a : array_like Input data. axis : None or int or tuple of ints, optional New in version 1.7.0. Selects a subset of the single-dimensional entries in the shape. If an axis is selected with shape entry greater than one, an error is raised. Returns: squeezed : ndarray The input array, but with all or a subset of the dimensions of length 1 removed. This is always a itself

numpy.ma.indices()

numpy.ma.indices(dimensions, dtype=) [source] Return an array representing the indices of a grid. Compute an array where the subarrays contain index values 0,1,... varying only along the corresponding axis. Parameters: dimensions : sequence of ints The shape of the grid. dtype : dtype, optional Data type of the result. Returns: grid : ndarray The array of grid indices, grid.shape = (len(dimensions),) + tuple(dimensions). See also mgrid, meshgrid Notes The output shape is obtaine

recarray.take()

recarray.take(indices, axis=None, out=None, mode='raise') Return an array formed from the elements of a at the given indices. Refer to numpy.take for full documentation. See also numpy.take equivalent function

recarray.var()

recarray.var(axis=None, dtype=None, out=None, ddof=0, keepdims=False) Returns the variance of the array elements, along given axis. Refer to numpy.var for full documentation. See also numpy.var equivalent function

recarray.argmin()

recarray.argmin(axis=None, out=None) Return indices of the minimum values along the given axis of a. Refer to numpy.argmin for detailed documentation. See also numpy.argmin equivalent function

recarray.tolist()

recarray.tolist() Return the array as a (possibly nested) list. Return a copy of the array data as a (nested) Python list. Data items are converted to the nearest compatible Python type. Parameters: none Returns: y : list The possibly nested list of array elements. Notes The array may be recreated, a = np.array(a.tolist()). Examples >>> a = np.array([1, 2]) >>> a.tolist() [1, 2] >>> a = np.array([[1, 2], [3, 4]]) >>> list(a) [array([1, 2]), array([3

numpy.core.defchararray.istitle()

numpy.core.defchararray.istitle(a) [source] Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. Call str.istitle element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a : array_like of str or unicode Returns: out : ndarray Output array of bools See also str.istitle

record.ndim

record.ndim number of array dimensions

ndarray.sort()

ndarray.sort(axis=-1, kind='quicksort', order=None) Sort an array, in-place. Parameters: axis : int, optional Axis along which to sort. Default is -1, which means sort along the last axis. kind : {?quicksort?, ?mergesort?, ?heapsort?}, optional Sorting algorithm. Default is ?quicksort?. order : str or list of str, optional When a is an array with fields defined, this argument specifies which fields to compare first, second, etc. A single field can be specified as a string, and not all