Search
Search Results
Search finished, found 49 page(s) matching the search query.
- Logic functions
...NumPy reference Routines and objects by topic Logic functions...
- NumPy 2.0.0 Release Notes
...rray API standard compatibility for details. (gh-25911) Improvements Strings are now supported by any, all, and the logical ufuncs. (gh-25651) Integer sequences as the shape argument for memmap numpy.memmap can now be created with a...
- numpy.logical_and (Python data, in numpy.logical_and)
- numpy.logical_not (Python data, in numpy.logical_not)
- numpy.logical_or (Python data, in numpy.logical_or)
- numpy.logical_xor (Python data, in numpy.logical_xor)
- Array API
...e, a unit DType could use this to wrap an existing floating point DType without needing to re-implement low-level ufunc logic. In the unit example, resolve_descriptors would handle computing the output unit from the input unit. typedef...
- Array iterator API
...dex is called. This function also resets the iterator to its initial state. WARNING: This function changes the internal logic of the iterator. Any cached functions or pointers from the iterator must be retrieved again! Returns NPY_SUCCEED o...
- Indexing on
ndarrays
...d indexing operations are inserted into the result array at the same spot as they were in the initial array (the latter logic is what makes simple advanced indexing behave just like slicing). Example Suppose x.shape is (10, 20, 30) and ind...
- Iterating over arrays
...loop In all the examples so far, the elements of a are provided by the iterator one at a time, because all the looping logic is internal to the iterator. While this is simple and convenient, it is not very efficient. A better approach is t...
- NumPy 1.12.1 Release Notes
...Wheels for Linux, Windows, and OSX can be found on PyPI, Bugs Fixed BUG: Fix wrong future nat warning and equiv type logic error… BUG: Fix wrong masked median for some special cases DOC: Place np.average in inline code TST: Work around i...
- NumPy 1.14.1 Release Notes
...is not C_CONTIGUOUS. #10558: DEP: Issue FutureWarning when malformed records detected. #10559: BUG: Fix einsum optimize logic for singleton dimensions #10560: BUG: Fix calling ufuncs with a positional output argument. #10561: BUG: Fix vario...
- NumPy 1.16.0 Release Notes
...ns Universal functions have an .identity which is used when .reduce is called on an empty axis. As of this release, the logical binary ufuncs, logical_and, logical_or, and logical_xor, now have identity s of type bool, where previously they...
- NumPy 1.18.0 Release Notes
...r arrays as fill values in ma.fill_value Setting a MaskedArray.fill_value to a non-scalar array is deprecated since the logic to broadcast the fill value to the array is fragile, especially when slicing. (gh-13698) Deprecate PyArray_As1D,...
- NumPy 1.18.2 Release Notes
...ins__ #15722: MAINT: use list-based APIs to call subprocesses #15729: REL: Prepare for 1.18.2 release. #15734: BUG: fix logic error when nm fails on 32-bit...
- NumPy 1.20.0 Release Notes
...be using subarray dtypes Array creation and casting using np.array(arr, dtype) and arr.astype(dtype) will use different logic when dtype is a subarray dtype such as np.dtype("(2)i,"). For such a dtype the following behaviour is true: res =...
- NumPy 1.21.2 Release Notes
...hod to nditer type hints #19656: BLD, SIMD: Fix testing extra checks when -Werror isn’t applicable… #19657: BUG: Remove logical object ufuncs with bool output #19658: MAINT: Include .coveragerc in source distributions to support… #19659: BU...
- NumPy 1.22.3 Release Notes
...The most noticeable fixes may be those for DLPack. One that may cause some problems is disallowing strings as inputs to logical ufuncs. It is still undecided how strings should be treated in those functions and it was thought best to simply...
- NumPy 1.23.0 Release Notes
...nless the structure includes padding not guaranteed by align=True. In alignment with the above changes to the promotion logic, the casting safety has been updated: "equiv" enforces matching names and titles. The itemsize is allowed to diff...
- NumPy 1.24 Release Notes
...etween NumPy integers is unaffected, so that np.array(-1).astype(np.uint8) continues to work and use C integer overflow logic. For negative values, it will also work to view the array: np.array(-1, dtype=np.int8).view(np.uint8). In some ca...
- NumPy 1.25.0 Release Notes
...indexed loops have been added to add, subtract, multiply, floor_divide, maximum, minimum, fmax, and fmin. The internal logic is similar to the logic used for regular ufuncs, which also have fast paths. Thanks to the D. E. Shaw group for sp...
- NumPy 1.4.0 Release Notes
...our own. split multiarray and umath source code The source code of multiarray and umath has been split into separate logic compilation units. This should make the source code more amenable for newcomers. Separate compilation By default...
- NumPy 1.8.0 Release Notes
...to find the right ufunc loop function when the ufunc was called from Python, because the ufunc loop signature matching logic wasn’t looking at the output operand type. Now the correct ufunc loop is found, as long as the user provides an ou...
- NumPy 2.0.2 Release Notes
- NumPy C code explanations
- NumPy documentation
...ch as masked arrays and matrices), and an assortment of routines for fast operations on arrays, including mathematical, logical, shape manipulation, sorting, selecting, I/O, discrete Fourier transforms, basic linear algebra, basic statistic...
- NumPy for MATLAB users
- NumPy quickstart
...[0, 2, 4, 6, 8], [0, 1, 2, 3, 4]]) >>> xy = np.hstack([x, y]) >>> xy array([0, 2, 4, 6, 8, 0, 1, 2, 3, 4]) The logic behind those functions in more than two dimensions can be strange. See also NumPy for MATLAB users Histograms...
- NumPy reference
...e Fourier Transform (numpy.fft) Functional programming Input and output Indexing routines Linear algebra (numpy.linalg) Logic functions Masked array operations Mathematical functions Miscellaneous routines Polynomials Random sampling (numpy...
- numpy.all
- numpy.any
- numpy.can_cast
- numpy.i: a SWIG interface file for NumPy
- numpy.lib.array_utils.normalize_axis_index
- numpy.lib.array_utils.normalize_axis_tuple
- numpy.logical_and
- numpy.logical_not
- numpy.logical_or
- numpy.logical_xor
- numpy.matrix.any
- numpy.packbits
- NumPy: the absolute basics for beginners
- Python types and C-structures
- Routines and objects by topic
- Signature file
- Standard array subclasses
- Universal functions (
ufunc
) - Using via
scikit-build
- What is NumPy?