HermiteE.trim()

HermiteE.trim(tol=0) [source] Remove trailing coefficients Remove trailing coefficients until a coefficient is reached whose absolute value greater than tol or the beginning of the series is reached. If all the coefficients would be removed the series is set to [0]. A new series instance is returned with the new coefficients. The current instance remains unchanged. Parameters: tol : non-negative number. All trailing coefficients less than tol will be removed. Returns: new_series : seri

recarray.fill()

recarray.fill(value) Fill the array with a scalar value. Parameters: value : scalar All elements of a will be assigned this value. Examples >>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([ 1., 1.])

generic.shape

generic.shape tuple of array dimensions

numpy.testing.decorate_methods()

numpy.testing.decorate_methods(cls, decorator, testmatch=None) [source] Apply a decorator to all methods in a class matching a regular expression. The given decorator is applied to all public methods of cls that are matched by the regular expression testmatch (testmatch.search(methodname)). Methods that are private, i.e. start with an underscore, are ignored. Parameters: cls : class Class whose methods to decorate. decorator : function Decorator to apply to methods testmatch : compiled

numpy.ma.where()

numpy.ma.where(condition, x=, y=) [source] Return a masked array with elements from x or y, depending on condition. Returns a masked array, shaped like condition, where the elements are from x when condition is True, and from y otherwise. If neither x nor y are given, the function returns a tuple of indices where condition is True (the result of condition.nonzero()). Parameters: condition : array_like, bool The condition to meet. For each True element, yield the corresponding element from

Chebyshev.cutdeg()

Chebyshev.cutdeg(deg) [source] Truncate series to the given degree. Reduce the degree of the series to deg by discarding the high order terms. If deg is greater than the current degree a copy of the current series is returned. This can be useful in least squares where the coefficients of the high degree terms may be very small. New in version 1.5.0. Parameters: deg : non-negative int The series is reduced to degree deg by discarding the high order terms. The value of deg must be a non-n

numpy.swapaxes()

numpy.swapaxes(a, axis1, axis2) [source] Interchange two axes of an array. Parameters: a : array_like Input array. axis1 : int First axis. axis2 : int Second axis. Returns: a_swapped : ndarray For Numpy >= 1.10, if a is an ndarray, then a view of a is returned; otherwise a new array is created. For earlier Numpy versions a view of a is returned only if the order of the axes is changed, otherwise the input array is returned. Examples >>> x = np.array([[1,2,3]]) >&g

Polynomial.linspace()

Polynomial.linspace(n=100, domain=None) [source] Return x, y values at equally spaced points in domain. Returns the x, y values at n linearly spaced points across the domain. Here y is the value of the polynomial at the points x. By default the domain is the same as that of the series instance. This method is intended mostly as a plotting aid. New in version 1.5.0. Parameters: n : int, optional Number of point pairs to return. The default value is 100. domain : {None, array_like}, opti

numpy.core.defchararray.lower()

numpy.core.defchararray.lower(a) [source] Return an array with the elements converted to lowercase. Call str.lower element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a : array_like, {str, unicode} Input array. Returns: out : ndarray, {str, unicode} Output array of str or unicode, depending on input type See also str.lower Examples >>> c = np.array(['A1B C', '1BCA', 'BCA1']); c array(['A1B C', '1BCA', 'BCA1'], dtype='|S5') >>> np.c

numpy.ma.reshape()

numpy.ma.reshape(a, new_shape, order='C') [source] Returns an array containing the same data with a new shape. Refer to MaskedArray.reshape for full documentation. See also MaskedArray.reshape equivalent function