Hermite.roots()

Hermite.roots() [source] Return the roots of the series polynomial. Compute the roots for the series. Note that the accuracy of the roots decrease the further outside the domain they lie. Returns: roots : ndarray Array containing the roots of the series.

numpy.unwrap()

numpy.unwrap(p, discont=3.141592653589793, axis=-1) [source] Unwrap by changing deltas between values to 2*pi complement. Unwrap radian phase p by changing absolute jumps greater than discont to their 2*pi complement along the given axis. Parameters: p : array_like Input array. discont : float, optional Maximum discontinuity between values, default is pi. axis : int, optional Axis along which unwrap will operate, default is the last axis. Returns: out : ndarray Output array. Se

numpy.power()

numpy.power(x1, x2[, out]) = First array elements raised to powers from second array, element-wise. Raise each base in x1 to the positionally-corresponding power in x2. x1 and x2 must be broadcastable to the same shape. Parameters: x1 : array_like The bases. x2 : array_like The exponents. Returns: y : ndarray The bases in x1 raised to the exponents in x2. Examples Cube each element in a list. >>> x1 = range(6) >>> x1 [0, 1, 2, 3, 4, 5] >>> np.power(x1,

recarray.tostring()

recarray.tostring(order='C') Construct Python bytes containing the raw data bytes in the array. Constructs Python bytes showing a copy of the raw contents of data memory. The bytes object can be produced in either ?C? or ?Fortran?, or ?Any? order (the default is ?C?-order). ?Any? order means C-order unless the F_CONTIGUOUS flag in the array is set, in which case it means ?Fortran? order. This function is a compatibility alias for tobytes. Despite its name it returns bytes not strings. Param

ndarray.prod()

ndarray.prod(axis=None, dtype=None, out=None, keepdims=False) Return the product of the array elements over the given axis Refer to numpy.prod for full documentation. See also numpy.prod equivalent function

recarray.partition()

recarray.partition(kth, axis=-1, kind='introselect', order=None) Rearranges the elements in the array in such a way that value of the element in kth position is in the position it would be in a sorted array. All elements smaller than the kth element are moved before this element and all equal or greater are moved behind it. The ordering of the elements in the two partitions is undefined. New in version 1.8.0. Parameters: kth : int or sequence of ints Element index to partition by. The k

recarray.resize()

recarray.resize(new_shape, refcheck=True) Change shape and size of array in-place. Parameters: new_shape : tuple of ints, or n ints Shape of resized array. refcheck : bool, optional If False, reference count will not be checked. Default is True. Returns: None Raises: ValueError If a does not own its own data or references or views to it exist, and the data memory must be changed. SystemError If the order keyword argument is specified. This behaviour is a bug in NumPy. See als

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

recarray.transpose()

recarray.transpose(*axes) Returns a view of the array with axes transposed. For a 1-D array, this has no effect. (To change between column and row vectors, first cast the 1-D array into a matrix object.) For a 2-D array, this is the usual matrix transpose. For an n-D array, if axes are given, their order indicates how the axes are permuted (see Examples). If axes are not provided and a.shape = (i[0], i[1], ... i[n-2], i[n-1]), then a.transpose().shape = (i[n-1], i[n-2], ... i[1], i[0]). Par

numpy.ndarray

class numpy.ndarray [source] An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.) Arrays should be constructed using array, zeros or empty (refer to the See Also section below). The parameters given here refer to a low-level method (ndarray(...)) for