Search
Search Results
Search finished, found 33 page(s) matching the search query.
- numpy.outer
...NumPy reference NumPy’s module structure Linear algebra (numpy.linalg) numpy.outer...
- numpy.linalg.outer (Python function, in numpy.linalg.outer)
- numpy.ma.outer (Python function, in numpy.ma.outer)
- numpy.outer (Python function, in numpy.outer)
- numpy.ufunc.outer (Python method, in numpy.ufunc.outer)
- Iterating over arrays
...last): ... ValueError: non-broadcastable output operand with shape (3,) doesn't match the broadcast shape (2,3) Outer product iteration Any binary operation can be extended to an array operation in an outer product fashion like in o...
- NumPy 1.12.0 Release Notes
...ow more specific to the given warning category. This increased specificity leads to them being handled according to the outer warning settings. This means that no warning may be raised in cases where a wrong category warning is given and ig...
- NumPy 1.20.0 Release Notes
...ead of importing functions from numpy.dual, the functions should be imported directly from NumPy or SciPy. (gh-16156) outer and ufunc.outer deprecated for matrix np.matrix use with outer or generic ufunc outer calls such as numpy.add.oute...
- NumPy 2.0.0 Release Notes
...n alias for numpy.vecdot. numpy.linalg.matrix_transpose - An alias for numpy.matrix_transpose. (gh-25155) numpy.linalg.outer has been added. It computes the outer product of two vectors. It differs from numpy.outer by accepting one-dimensi...
- NumPy C code explanations
...terate over all but the largest dimension. The inner loop is then handled by the underlying 1-D computational loop. The outer loop is a standard iterator loop on the converted iterators. The hardware error flags are checked after each 1-D l...
- NumPy quickstart
...v, cross, cumprod, cumsum, diff, dot, floor, inner, invert, lexsort, max, maximum, mean, median, min, minimum, nonzero, outer, prod, re, round, sort, std, sum, trace, transpose, var, vdot, vectorize, where Indexing, slicing and iterating...
- numpy.cross
...ValueErrorWhen the dimension of the vector(s) in a and/or b does not equal 2 or 3. See also innerInner product outerOuter product. linalg.crossAn Array API compatible variation of np.cross, which accepts (arrays of) 3-element vect...
- numpy.diagonal
...[6, 7]]]) >>> a.diagonal(0, # Main diagonals of two arrays created by skipping ... 0, # across the outer(left)-most axis last and ... 1) # the "middle" (row) axis first. array([[0, 6], [1, 7]]) The...
- numpy.einsum
...urns: outputndarrayThe calculation based on the Einstein summation convention. See also einsum_path, dot, inner, outer, tensordot, linalg.multi_dot einsumSimilar verbose interface is provided by the einops package to cover additional...
- numpy.einsum_path
...oses the best pair contraction at each step. Effectively, this algorithm searches the largest inner, Hadamard, and then outer products at each step. Scales cubically with the number of terms in the contraction. Equivalent to the ‘optimal’ p...
- numpy.histogramdd
...sions (nx=ny=…=bins). rangesequence, optionalA sequence of length D, each an optional (lower, upper) tuple giving the outer bin edges to be used if the edges are not given explicitly in bins. An entry of None in the sequence results in th...
- numpy.kron
...de of blocks of the second array scaled by the first. Parameters: a, barray_like Returns: outndarray See also outerThe outer product Notes The function assumes that the number of dimensions of a and b are the same, if necessary...
- numpy.linalg.outer
...umPy reference NumPy’s module structure Linear algebra (numpy.linalg) numpy.linalg.outer...
- numpy.ma.outer
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.outer...
- numpy.ma.outerproduct
...NumPy reference NumPy’s module structure Masked array operations numpy.ma.outerproduct...
- numpy.nditer
...addop(it[0], it[1], out=it[2]) ... it.iternext() ... return it.operands[2] Here is an example outer product function: >>> def outer_it(x, y, out=None): ... mulop = np.multiply ... it = np.nditer([x, y, out]...
- numpy.outer
...NumPy reference NumPy’s module structure Linear algebra (numpy.linalg) numpy.outer...
- numpy.testing.suppress_warnings
...the forwarding rule is “always” (default). Unfiltered and unrecorded warnings will be passed out and be matched by the outer level. On the outmost level they will be printed (or caught by another warnings context). The forwarding rule argu...
- numpy.ufunc.outer
...NumPy reference Universal functions (ufunc) numpy.ufunc numpy.ufunc.outer...
- Standard array subclasses
...d. method is a string indicating which Ufunc method was called (one of "__call__", "reduce", "reduceat", "accumulate", "outer", "inner"). inputs is a tuple of the input arguments to the ufunc. kwargs is a dictionary containing the optional...
- What is NumPy?
..., ndarray is a class, possessing numerous methods and attributes. Many of its methods are mirrored by functions in the outer-most NumPy namespace, allowing the programmer to code in whichever paradigm they prefer. This flexibility has allo...
- numpy.ma.outerproduct (Python function, in numpy.ma.outerproduct)
- Broadcasting
...the elements of the 2nd arrays for element-by-element addition. Broadcasting provides a convenient way of taking the outer product (or any other outer operation) of two arrays. The following example shows an outer addition operation of t...
- Constants
...s, np.newaxis] array([[[0]], [[1]], [[2]]]) >>> x[:, np.newaxis] * x array([[0, 0, 0], [0, 1, 2], [0, 2, 4]]) Outer product, same as outer(x, y): >>> y = np.arange(3, 6) >>> x[:, np.newaxis] * y array([[ 0, 0, 0], [ 3, 4,...
- Generalized universal function API
...ation matvec (m,n),(n)->(m) matrix-vector multiplication matmul (m?,n),(n,p?)->(m?,p?) combination of the four above outer_inner (i,t),(j,t)->(i,j) inner over the last dimension, outer over the second to last, and loop/broadcast over the...
- Structured arrays
...equence of strings corresponding to the fields used for comparison. r1, r2arraysStructured arrays. jointype{‘inner’, ‘outer’, ‘leftouter’}, optionalIf ‘inner’, returns the elements common to both r1 and r2. If ‘outer’, returns the common...
- Subclassing ndarray
...lled, either "__call__" to indicate it was called directly, or one of its methods: "reduce", "accumulate", "reduceat", "outer", or "at". inputs is a tuple of the input arguments to the ufunc kwargs contains any optional or keyword arguments...
- Writing custom array containers
...tion like numpy.multiply method, a string, differentiating between numpy.multiply(...) and variants like numpy.multiply.outer, numpy.multiply.accumulate, and so on. For the common case, numpy.multiply(...), method == '__call__'. inputs, wh...