numpy.ptp()

numpy.ptp(a, axis=None, out=None) [source] Range of values (maximum - minimum) along an axis. The name of the function comes from the acronym for ?peak to peak?. Parameters: a : array_like Input values. axis : int, optional Axis along which to find the peaks. By default, flatten the array. out : array_like Alternative output array in which to place the result. It must have the same shape and buffer length as the expected output, but the type of the output values will be cast if necess

numpy.iinfo()

class numpy.iinfo(type) [source] Machine limits for integer types. Parameters: int_type : integer type, dtype, or instance The kind of integer data type to get information about. See also finfo The equivalent for floating point data types. Examples With types: >>> ii16 = np.iinfo(np.int16) >>> ii16.min -32768 >>> ii16.max 32767 >>> ii32 = np.iinfo(np.int32) >>> ii32.min -2147483648 >>> ii32.max 2147483647 With instances: >&g

Legendre.roots()

Legendre.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.arcsinh()

numpy.arcsinh(x[, out]) = Inverse hyperbolic sine element-wise. Parameters: x : array_like Input array. out : ndarray, optional Array into which the output is placed. Its type is preserved and it must be of the right shape to hold the output. See doc.ufuncs. Returns: out : ndarray Array of of the same shape as x. Notes arcsinh is a multivalued function: for each x there are infinitely many numbers z such that sinh(z) = x. The convention is to return the z whose imaginary part lie

recarray.tofile()

recarray.tofile(fid, sep="", format="%s") Write array to a file as text or binary (default). Data is always written in ?C? order, independent of the order of a. The data produced by this method can be recovered using the function fromfile(). Parameters: fid : file or str An open file object, or a string containing a filename. sep : str Separator between array items for text output. If ?? (empty), a binary file is written, equivalent to file.write(a.tobytes()). format : str Format stri

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

ndarray.newbyteorder()

ndarray.newbyteorder(new_order='S') Return the array with the same data viewed with a different byte order. Equivalent to: arr.view(arr.dtype.newbytorder(new_order)) Changes are also made in all fields and sub-arrays of the array data type. Parameters: new_order : string, optional Byte order to force; a value from the byte order specifications below. new_order codes can be any of: ?S? - swap dtype from current to opposite endian {?<?, ?L?} - little endian {?>?, ?B?} - big endian {?

ndarray.__setstate__()

ndarray.__setstate__(version, shape, dtype, isfortran, rawdata) For unpickling. Parameters: version : int optional pickle version. If omitted defaults to 0. shape : tuple dtype : data-type isFortran : bool rawdata : string or list a binary string with the data (or a list if ?a? is an object array)

ndarray.__div__

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

matrix.itemset()

matrix.itemset(*args) Insert scalar into an array (scalar is cast to array?s dtype, if possible) There must be at least 1 argument, and define the last argument as item. Then, a.itemset(*args) is equivalent to but faster than a[args] = item. The item should be a scalar value and args must select a single item in the array a. Parameters: *args : Arguments If one argument: a scalar, only used in case a is of size 1. If two arguments: the last argument is the value to be set and must be a sc