recarray.conjugate()

recarray.conjugate() Return the complex conjugate, element-wise. Refer to numpy.conjugate for full documentation. See also numpy.conjugate equivalent function

Iterating Over Arrays

The iterator object nditer, introduced in NumPy 1.6, provides many flexible ways to visit all the elements of one or more arrays in a systematic fashion. This page introduces some basic ways to use the object for computations on arrays in Python, then concludes with how one can accelerate the inner loop in Cython. Since the Python exposure of nditer is a relatively straightforward mapping of the C array iterator API, these ideas will also provide help working with array iteration from C or C++

numpy.polynomial.hermite.hermline()

numpy.polynomial.hermite.hermline(off, scl) [source] Hermite series whose graph is a straight line. Parameters: off, scl : scalars The specified line is given by off + scl*x. Returns: y : ndarray This module?s representation of the Hermite series for off + scl*x. See also polyline, chebline Examples >>> from numpy.polynomial.hermite import hermline, hermval >>> hermval(0,hermline(3, 2)) 3.0 >>> hermval(1,hermline(3, 2)) 5.0

HermiteE.truncate()

HermiteE.truncate(size) [source] Truncate series to length size. Reduce the series to length size by discarding the high degree terms. The value of size must be a positive integer. This can be useful in least squares where the coefficients of the high degree terms may be very small. Parameters: size : positive int The series is reduced to length size by discarding the high degree terms. The value of size must be a positive integer. Returns: new_series : series New instance of series w

Legendre.identity()

classmethod Legendre.identity(domain=None, window=None) [source] Identity function. If p is the returned series, then p(x) == x for all values of x. Parameters: domain : {None, array_like}, optional If given, the array must be of the form [beg, end], where beg and end are the endpoints of the domain. If None is given then the class domain is used. The default is None. window : {None, array_like}, optional If given, the resulting array must be if the form [beg, end], where beg and end ar

ndarray.transpose()

ndarray.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]). Para

broadcast.reset()

broadcast.reset() Reset the broadcasted result?s iterator(s). Parameters: None Returns: None Examples >>> x = np.array([1, 2, 3]) >>> y = np.array([[4], [5], [6]] >>> b = np.broadcast(x, y) >>> b.index 0 >>> b.next(), b.next(), b.next() ((1, 4), (2, 4), (3, 4)) >>> b.index 3 >>> b.reset() >>> b.index 0

chararray.lower()

chararray.lower() [source] Return an array with the elements of self converted to lowercase. See also char.lower

numpy.array_equiv()

numpy.array_equiv(a1, a2) [source] Returns True if input arrays are shape consistent and all elements equal. Shape consistent means they are either the same shape, or one input array can be broadcasted to create the same shape as the other one. Parameters: a1, a2 : array_like Input arrays. Returns: out : bool True if equivalent, False otherwise. Examples >>> np.array_equiv([1, 2], [1, 2]) True >>> np.array_equiv([1, 2], [1, 3]) False Showing the shape equivalence:

numpy.polynomial.hermite_e.herme2poly()

numpy.polynomial.hermite_e.herme2poly(c) [source] Convert a Hermite series to a polynomial. Convert an array representing the coefficients of a Hermite series, ordered from lowest degree to highest, to an array of the coefficients of the equivalent polynomial (relative to the ?standard? basis) ordered from lowest to highest degree. Parameters: c : array_like 1-D array containing the Hermite series coefficients, ordered from lowest order term to highest. Returns: pol : ndarray 1-D arra