Search
Search Results
Search finished, found 49 page(s) matching the search query.
- numpy.inner
...NumPy reference NumPy’s module structure Linear algebra (numpy.linalg) numpy.inner...
- numpy.inner (Python function, in numpy.inner)
- numpy.ma.inner (Python function, in numpy.ma.inner)
- Array iterator API
...er* iter; NpyIter_IterNextFunc *iternext; char** dataptr; npy_intp nonzero_count; npy_intp* strideptr,* innersizeptr; /* Handle zero-sized arrays specially */ if (PyArray_SIZE(self) == 0) { return 0; }...
- How to contribute to the NumPy documentation
- Iterating over arrays
...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 iterato...
- Memory alignment
...the ALIGNED flag of an array is False, ufuncs will buffer/cast the array before evaluation. This is needed since ufunc inner loops access raw elements directly, which might fail on some archs if the elements are not true-aligned. Getitem/s...
- NumPy 1.10.0 Release Notes
...ct overrides of __add__, __sub__, etc. Changes dotblas functionality moved to multiarray The cblas versions of dot, inner, and vdot have been integrated into the multiarray module. In particular, vdot is now a multiarray function, which...
- NumPy 1.10.2 Release Notes
...in default casting rule in 1.10 release notes. gh-6530 The partition function errors out on empty input. gh-6532 numpy.inner return wrong inaccurate value sometimes. gh-6563 Intent(out) broken in recent versions of f2py. gh-6569 Cannot run...
- NumPy 1.11.0 Release Notes
...ification. np.dot now raises TypeError instead of ValueError This behaviour mimics that of other functions such as np.inner. If the two arguments cannot be cast to a common type, it could have raised a TypeError or ValueError depending on...
- NumPy 1.13.0 Release Notes
...cessing the removed dimensions later on. The largest followup change is that gufuncs are now allowed to have zero-sized inner dimensions. This means that a gufunc now has to anticipate an empty inner dimension, while this was never possible...
- NumPy 1.15.0 Release Notes
- NumPy 1.16.0 Release Notes
...precated along with the C-API functions PyArray_SetNumericOps and PyArray_GetNumericOps. Users who wish to override the inner loop functions in built-in ufuncs should use PyUFunc_ReplaceLoopBySignature. The numpy.unravel_index keyword argum...
- NumPy 1.19.0 Release Notes
...Previously the caller would have to cast away the const-ness to call these functions. (gh-15251) Const qualify UFunc inner loops UFuncGenericFunction now expects pointers to const dimension and strides as arguments. This means inner loop...
- NumPy 1.22.0 Release Notes
...nential, and standard_gamma, but only when the dtype is specified as numpy.float32. (gh-20314) C API changes Masked inner-loops cannot be customized anymore The masked inner-loop selector is now never used. A warning will be given in t...
- NumPy 1.3.0 Release Notes
...efining two scalar inputs and one scalar output. Another example is (see the GeneralLoopingFunctions page) the function inner1d(a,b) with a signature of “(i),(i)->()”. This applies the inner product along the last axis of each input, but ke...
- NumPy 1.8.0 Release Notes
...taMem_NEW_ZEROED C-API Ufunc Additions One new function has been added to the ufunc C-API that allows to register an inner loop for user types using the descr. PyUFunc_RegisterLoopForDescr C-API Developer Improvements The PyArray_Typ...
- NumPy 1.8.1 Release Notes
...ays gh-4145: Incorrect shape of broadcast result with the exponent operator gh-4483: Fix commutativity of {dot,multiply,inner}(scalar, matrix_of_objs) gh-4466: Delay npyiter size check when size may change gh-4485: Buffered stride was erron...
- NumPy 1.9.1 Release Notes
...gh-5082: Segmentation fault with argmin() on unicode arrays gh-5095: don’t propagate subtypes from np.where gh-5104: np.inner segfaults with SciPy’s sparse matrices gh-5251: Issue with fromarrays not using correct format for unicode arrays...
- NumPy C code explanations
...indexing array during item getting, the validity of the indices is checked beforehand. Otherwise, it is handled in the inner loop itself for optimization. Universal functions See also Universal functions (ufunc), Universal functions (u...
- NumPy quickstart
...argmax, argmin, argsort, average, bincount, ceil, clip, conj, corrcoef, cov, cross, cumprod, cumsum, diff, dot, floor, inner, invert, lexsort, max, maximum, mean, median, min, minimum, nonzero, outer, prod, re, round, sort, std, sum, trace...
- numpy.apply_along_axis
...Nj = f.shape for jj in ndindex(Nj): out[ii + jj + kk] = f[jj] Equivalently, eliminating the inner loop, this can be expressed as: Ni, Nk = a.shape[:axis], a.shape[axis+1:] for ii in ndindex(Ni): for kk in ndi...
- numpy.cross
...oduct(s). Raises: 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 (array...
- numpy.dot
- numpy.einsum
...Returns: 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 add...
- numpy.einsum_path
...edy’ An algorithm that chooses 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. Equ...
- numpy.inner
...NumPy reference NumPy’s module structure Linear algebra (numpy.linalg) numpy.inner...
- numpy.linalg.matmul
..., 2, 2) >>> np.linalg.matmul(a, b)[0, 1, 1] 98 >>> sum(a[0, 1, :] * b[0 , :, 1]) 98 Vector, vector returns the scalar inner product, but neither argument is complex-conjugated: >>> np.linalg.matmul([2j, 3j], [2j, 3j]) (-13+0j) Scalar mu...
- numpy.ma.apply_along_axis
- numpy.ma.inner
- numpy.ma.innerproduct
- numpy.ma.outer
...ray, optionalA location where the result is stored Returns: out(M, N) ndarrayout[i, j] = a[i] * b[j] See also inner einsumeinsum('i,j->ij', a.ravel(), b.ravel()) is the equivalent. ufunc.outerA generalization to dimensions other...
- numpy.ma.outerproduct
...ray, optionalA location where the result is stored Returns: out(M, N) ndarrayout[i, j] = a[i] * b[j] See also inner einsumeinsum('i,j->ij', a.ravel(), b.ravel()) is the equivalent. ufunc.outerA generalization to dimensions other...
- numpy.matmul
- numpy.outer
...ray, optionalA location where the result is stored Returns: out(M, N) ndarrayout[i, j] = a[i] * b[j] See also inner einsumeinsum('i,j->ij', a.ravel(), b.ravel()) is the equivalent. ufunc.outerA generalization to dimensions other...
- numpy.put_along_axis
- numpy.take
- numpy.take_along_axis
- numpy.vdot
- Putting the inner loop in Cython
- Standard array subclasses
- Writing your own ufunc
- numpy.ma.innerproduct (Python function, in numpy.ma.innerproduct)
- Array API
- Array objects
- Beyond the basics
- Generalized universal function API
- Structured arrays
- Universal functions (
ufunc
) basics