Legendre Module (numpy.polynomial.legendre)

New in version 1.6.0. This module provides a number of objects (mostly functions) useful for dealing with Legendre series, including a Legendre class that encapsulates the usual arithmetic operations. (General information on how this module represents and works with such polynomials is in the docstring for its ?parent? sub-package, numpy.polynomial). Legendre Class Legendre(coef[, domain, window]) A Legendre series class. Basics legval(x, c[, tensor]) Evaluate a Legendre series at point

generic.tofile()

generic.tofile() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, all the attributes of the ndarray class so as to provide a uniform API. See also The

ndarray.__hex__()

ndarray.__hex__() <==> hex(x)

Indexing routines

See also Indexing Generating index arrays c_ Translates slice objects to concatenation along the second axis. r_ Translates slice objects to concatenation along the first axis. s_ A nicer way to build up index tuples for arrays. nonzero(a) Return the indices of the elements that are non-zero. where(condition, [x, y]) Return elements, either from x or y, depending on condition. indices(dimensions[, dtype]) Return an array representing the indices of a grid. ix_(*args) Construct an open m

numpy.matmul()

numpy.matmul(a, b, out=None) Matrix product of two arrays. The behavior depends on the arguments in the following way. If both arguments are 2-D they are multiplied like conventional matrices. If either argument is N-D, N > 2, it is treated as a stack of matrices residing in the last two indexes and broadcast accordingly. If the first argument is 1-D, it is promoted to a matrix by prepending a 1 to its dimensions. After matrix multiplication the prepended 1 is removed. If the second argu

numpy.nditer

class numpy.nditer [source] Efficient multi-dimensional iterator object to iterate over arrays. To get started using this object, see the introductory guide to array iteration. Parameters: op : ndarray or sequence of array_like The array(s) to iterate over. flags : sequence of str, optional Flags to control the behavior of the iterator. ?buffered? enables buffering when required. ?c_index? causes a C-order index to be tracked. ?f_index? causes a Fortran-order index to be tracked. ?mult

Miscellaneous routines

Buffer objects getbuffer(obj [,offset[, size]]) Create a buffer object from the given object referencing a slice of length size starting at offset. newbuffer(size) Return a new uninitialized buffer object. Performance tuning alterdot() Change dot, vdot, and inner to use accelerated BLAS functions. restoredot() Restore dot, vdot, and innerproduct to the default non-BLAS implementations. setbufsize(size) Set the size of the buffer used in ufuncs. getbufsize() Return the size of the b

numpy.sctype2char()

numpy.sctype2char(sctype) [source] Return the string representation of a scalar dtype. Parameters: sctype : scalar dtype or object If a scalar dtype, the corresponding string character is returned. If an object, sctype2char tries to infer its scalar type and then return the corresponding string character. Returns: typechar : str The string character corresponding to the scalar type. Raises: ValueError If sctype is an object for which the type can not be inferred. See also obj2s

numpy.random.normal()

numpy.random.normal(loc=0.0, scale=1.0, size=None) Draw random samples from a normal (Gaussian) distribution. The probability density function of the normal distribution, first derived by De Moivre and 200 years later by both Gauss and Laplace independently [R250], is often called the bell curve because of its characteristic shape (see the example below). The normal distributions occurs often in nature. For example, it describes the commonly occurring distribution of samples influenced by a

generic.max()

generic.max() Not implemented (virtual attribute) Class generic exists solely to derive numpy scalars from, and possesses, albeit unimplemented, all the attributes of the ndarray class so as to provide a uniform API. See also The