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

numpy.polynomial.hermite.hermvander()

numpy.polynomial.hermite.hermvander(x, deg) [source] Pseudo-Vandermonde matrix of given degree. Returns the pseudo-Vandermonde matrix of degree deg and sample points x. The pseudo-Vandermonde matrix is defined by where 0 <= i <= deg. The leading indices of V index the elements of x and the last index is the degree of the Hermite polynomial. If c is a 1-D array of coefficients of length n + 1 and V is the array V = hermvander(x, n), then np.dot(V, c) and hermval(x, c) are the same u

numpy.core.defchararray.istitle()

numpy.core.defchararray.istitle(a) [source] Returns true for each element if the element is a titlecased string and there is at least one character, false otherwise. Call str.istitle element-wise. For 8-bit strings, this method is locale-dependent. Parameters: a : array_like of str or unicode Returns: out : ndarray Output array of bools See also str.istitle

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.ma.soften_mask()

numpy.ma.soften_mask(self) = Force the mask to soft. Whether the mask of a masked array is hard or soft is determined by its hardmask property. soften_mask sets hardmask to False. See also hardmask

numpy.deg2rad()

numpy.deg2rad(x[, out]) = Convert angles from degrees to radians. Parameters: x : array_like Angles in degrees. Returns: y : ndarray The corresponding angle in radians. See also rad2deg Convert angles from radians to degrees. unwrap Remove large jumps in angle by wrapping. Notes New in version 1.3.0. deg2rad(x) is x * pi / 180. Examples >>> np.deg2rad(180) 3.1415926535897931

MaskedArray.__setitem__()

MaskedArray.__setitem__(indx, value) [source] x.__setitem__(i, y) <==> x[i]=y Set item described by index. If value is masked, masks those locations.

generic.swapaxes()

generic.swapaxes() 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

numpy.extract()

numpy.extract(condition, arr) [source] Return the elements of an array that satisfy some condition. This is equivalent to np.compress(ravel(condition), ravel(arr)). If condition is boolean np.extract is equivalent to arr[condition]. Note that place does the exact opposite of extract. Parameters: condition : array_like An array whose nonzero or True entries indicate the elements of arr to extract. arr : array_like Input array of the same size as condition. Returns: extract : ndarray

broadcast.iters

broadcast.iters tuple of iterators along self?s ?components.? Returns a tuple of numpy.flatiter objects, one for each ?component? of self. See also numpy.flatiter Examples >>> x = np.array([1, 2, 3]) >>> y = np.array([[4], [5], [6]]) >>> b = np.broadcast(x, y) >>> row, col = b.iters >>> row.next(), col.next() (1, 4)