numpy.ma.prod()

numpy.ma.prod(self, axis=None, dtype=None, out=None) = Return the product of the array elements over the given axis. Masked elements are set to 1 internally for computation. Parameters: axis : {None, int}, optional Axis over which the product is taken. If None is used, then the product is over all the array elements. dtype : {None, dtype}, optional Determines the type of the returned array and of the accumulator where the elements are multiplied. If dtype has the value None and the typ

numpy.testing.assert_array_max_ulp()

numpy.testing.assert_array_max_ulp(a, b, maxulp=1, dtype=None) [source] Check that all items of arrays differ in at most N Units in the Last Place. Parameters: a, b : array_like Input arrays to be compared. maxulp : int, optional The maximum number of units in the last place that elements of a and b can differ. Default is 1. dtype : dtype, optional Data-type to convert a and b to if given. Default is None. Returns: ret : ndarray Array containing number of representable floating po

numpy.angle()

numpy.angle(z, deg=0) [source] Return the angle of the complex argument. Parameters: z : array_like A complex number or sequence of complex numbers. deg : bool, optional Return angle in degrees if True, radians if False (default). Returns: angle : ndarray or scalar The counterclockwise angle from the positive real axis on the complex plane, with dtype as numpy.float64. See also arctan2, absolute Examples >>> np.angle([1.0, 1.0j, 1+1j]) # in radians array([

ndarray.item()

ndarray.item(*args) Copy an element of an array to a standard Python scalar and return it. Parameters: *args : Arguments (variable number and type) none: in this case, the method only works for arrays with one element (a.size == 1), which element is copied into a standard Python scalar object and returned. int_type: this argument is interpreted as a flat index into the array, specifying which element to copy and return. tuple of int_types: functions as does a single int_type argument, exc

matrix.flat

matrix.flat A 1-D iterator over the array. This is a numpy.flatiter instance, which acts similarly to, but is not a subclass of, Python?s built-in iterator object. See also flatten Return a copy of the array collapsed into one dimension. flatiter Examples >>> x = np.arange(1, 7).reshape(2, 3) >>> x array([[1, 2, 3], [4, 5, 6]]) >>> x.flat[3] 4 >>> x.T array([[1, 4], [2, 5], [3, 6]]) >>> x.T.flat[3] 5 >>> type(x.

matrix.getfield()

matrix.getfield(dtype, offset=0) Returns a field of the given array as a certain type. A field is a view of the array data with a given data-type. The values in the view are determined by the given type and the offset into the current array in bytes. The offset needs to be such that the view dtype fits in the array dtype; for example an array of dtype complex128 has 16-byte elements. If taking a view with a 32-bit integer (4 bytes), the offset needs to be between 0 and 12 bytes. Parameters:

recarray.setflags()

recarray.setflags(write=None, align=None, uic=None) Set array flags WRITEABLE, ALIGNED, and UPDATEIFCOPY, respectively. These Boolean-valued flags affect how numpy interprets the memory area used by a (see Notes below). The ALIGNED flag can only be set to True if the data is actually aligned according to the type. The UPDATEIFCOPY flag can never be set to True. The flag WRITEABLE can only be set to True if the array owns its own memory, or the ultimate owner of the memory exposes a writeabl

Hermite.truncate()

Hermite.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 wi

Polynomial.has_samecoef()

Polynomial.has_samecoef(other) [source] Check if coefficients match. New in version 1.6.0. Parameters: other : class instance The other class must have the coef attribute. Returns: bool : boolean True if the coefficients are the same, False otherwise.

numpy.floor_divide()

numpy.floor_divide(x1, x2[, out]) = Return the largest integer smaller or equal to the division of the inputs. It is equivalent to the Python // operator and pairs with the Python % (remainder), function so that b = a % b + b * (a // b) up to roundoff. Parameters: x1 : array_like Numerator. x2 : array_like Denominator. Returns: y : ndarray y = floor(x1/x2) See also remainder Remainder complementary to floor_divide. divide Standard division. floor Round a number to the n