numpy.polynomial.polynomial.polyzero

numpy.polynomial.polynomial.polyzero = array([0])

generic.flags

generic.flags integer value of flags

RandomState.choice()

RandomState.choice(a, size=None, replace=True, p=None) Generates a random sample from a given 1-D array New in version 1.7.0. Parameters: a : 1-D array-like or int If an ndarray, a random sample is generated from its elements. If an int, the random sample is generated as if a was np.arange(n) size : int or tuple of ints, optional Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which case a single value is returned. replace

numpy.fromfile()

numpy.fromfile(file, dtype=float, count=-1, sep='') Construct an array from data in a text or binary file. A highly efficient way of reading binary data with a known data-type, as well as parsing simply formatted text files. Data written using the tofile method can be read using this function. Parameters: file : file or str Open file object or filename. dtype : data-type Data type of the returned array. For binary files, it is used to determine the size and byte-order of the items in th

numpy.asarray()

numpy.asarray(a, dtype=None, order=None) [source] Convert the input to an array. Parameters: a : array_like Input data, in any form that can be converted to an array. This includes 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-style) memory representation. Defaults to ?C?. Ret

MaskedArray.nbytes

MaskedArray.nbytes Total bytes consumed by the elements of the array. Notes Does not include memory consumed by non-element attributes of the array object. Examples >>> x = np.zeros((3,5,2), dtype=np.complex128) >>> x.nbytes 480 >>> np.prod(x.shape) * x.itemsize 480

numpy.memmap

class numpy.memmap [source] Create a memory-map to an array stored in a binary file on disk. Memory-mapped files are used for accessing small segments of large files on disk, without reading the entire file into memory. Numpy?s memmap?s are array-like objects. This differs from Python?s mmap module, which uses file-like objects. This subclass of ndarray has some unpleasant interactions with some operations, because it doesn?t quite fit properly as a subclass. An alternative to using this su

Laguerre.fit()

classmethod Laguerre.fit(x, y, deg, domain=None, rcond=None, full=False, w=None, window=None) [source] Least squares fit to data. Return a series instance that is the least squares fit to the data y sampled at x. The domain of the returned instance can be specified and this will often result in a superior fit with less chance of ill conditioning. Parameters: x : array_like, shape (M,) x-coordinates of the M sample points (x[i], y[i]). y : array_like, shape (M,) or (M, K) y-coordinates o

MaskedArray.__floordiv__()

MaskedArray.__floordiv__(other) [source] Divide other into self, and return a new masked array.

recarray.ctypes

recarray.ctypes An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctypes objects that can be used as arguments to a shared library. Parameters: None Returns: c : Python object Possessing attributes data, shape, strides, etc.