matrix.getI()

matrix.getI() [source] Returns the (multiplicative) inverse of invertible self. Parameters: None Returns: ret : matrix object If self is non-singular, ret is such that ret * self == self * ret == np.matrix(np.eye(self[0,:].size) all return True. Raises: numpy.linalg.LinAlgError: Singular matrix If self is singular. See also linalg.inv Examples >>> m = np.matrix('[1, 2; 3, 4]'); m matrix([[1, 2], [3, 4]]) >>> m.getI() matrix([[-2. , 1. ], [ 1.5,

numpy.polynomial.legendre.legcompanion()

numpy.polynomial.legendre.legcompanion(c) [source] Return the scaled companion matrix of c. The basis polynomials are scaled so that the companion matrix is symmetric when c is an Legendre basis polynomial. This provides better eigenvalue estimates than the unscaled case and for basis polynomials the eigenvalues are guaranteed to be real if numpy.linalg.eigvalsh is used to obtain them. Parameters: c : array_like 1-D array of Legendre series coefficients ordered from low to high degree.

numpy.polynomial.legendre.legline()

numpy.polynomial.legendre.legline(off, scl) [source] Legendre 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 Legendre series for off + scl*x. See also polyline, chebline Examples >>> import numpy.polynomial.legendre as L >>> L.legline(3,2) array([3, 2]) >>> L.legval(-3, L.legline(3,2)) # should be -3 -3.0

numpy.ma.min()

numpy.ma.min(obj, axis=None, out=None, fill_value=None) [source] Return the minimum along a given axis. Parameters: axis : {None, int}, optional Axis along which to operate. By default, axis is None and the flattened input is used. out : array_like, optional Alternative output array in which to place the result. Must be of the same shape and buffer length as the expected output. fill_value : {var}, optional Value used to fill in the masked values. If None, use the output of minimum_fi

ndarray.copy()

ndarray.copy(order='C') Return a copy of the array. Parameters: order : {?C?, ?F?, ?A?, ?K?}, optional Controls the memory layout of the copy. ?C? means C-order, ?F? means F-order, ?A? means ?F? if a is Fortran contiguous, ?C? otherwise. ?K? means match the layout of a as closely as possible. (Note that this function and :func:numpy.copy are very similar, but have different default values for their order= arguments.) See also numpy.copy, numpy.copyto Examples >>> x = np.array

numpy.arcsin()

numpy.arcsin(x[, out]) = Inverse sine, element-wise. Parameters: x : array_like y-coordinate on the unit circle. out : ndarray, optional Array of the same shape as x, in which to store the results. See doc.ufuncs (Section ?Output arguments?) for more details. Returns: angle : ndarray The inverse sine of each element in x, in radians and in the closed interval [-pi/2, pi/2]. If x is a scalar, a scalar is returned, otherwise an array. See also sin, cos, arccos, tan, arctan, arctan

numpy.polynomial.hermite.hermmul()

numpy.polynomial.hermite.hermmul(c1, c2) [source] Multiply one Hermite series by another. Returns the product of two Hermite series c1 * c2. The arguments are sequences of coefficients, from lowest order ?term? to highest, e.g., [1,2,3] represents the series P_0 + 2*P_1 + 3*P_2. Parameters: c1, c2 : array_like 1-D arrays of Hermite series coefficients ordered from low to high. Returns: out : ndarray Of Hermite series coefficients representing their product. See also hermadd, hermsu

Laguerre.has_sametype()

Laguerre.has_sametype(other) [source] Check if types match. New in version 1.7.0. Parameters: other : object Class instance. Returns: bool : boolean True if other is same class as self

numpy.testing.assert_string_equal()

numpy.testing.assert_string_equal(actual, desired) [source] Test if two strings are equal. If the given strings are equal, assert_string_equal does nothing. If they are not equal, an AssertionError is raised, and the diff between the strings is shown. Parameters: actual : str The string to test for equality against the expected string. desired : str The expected string. Examples >>> np.testing.assert_string_equal('abc', 'abc') >>> np.testing.assert_string_equal('abc'

RandomState.tomaxint()

RandomState.tomaxint(size=None) Random integers between 0 and sys.maxint, inclusive. Return a sample of uniformly distributed random integers in the interval [0, sys.maxint]. Parameters: 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. Returns: out : ndarray Drawn samples, with shape size. See also randint Uniform sampling over a given half-open