Search
Search Results
Search finished, found 12 page(s) matching the search query.
- numpy.matrix.put
...ce Array objects Standard array subclasses numpy.matrix numpy.matrix.put...
- numpy.matrix.put (Python method, in numpy.matrix.put)
- How to contribute to the NumPy documentation
...hod, and so on. Other “structural” defects like broken links also get priority. All these fixes are easy to confirm and put in place. You can submit a pull request (PR) with the fix, if you know how to do that; otherwise please open an issu...
- NumPy for MATLAB users
...ogical_and/logical_or. The notable differences between MATLAB’s and NumPy’s & and | operators are: Non-logical {0,1} inputs: NumPy’s output is the bitwise AND of the inputs. MATLAB treats any non-zero value as 1 and returns the logical AND...
- NumPy quickstart
...not automatically converted to integer type Traceback (most recent call last): ... numpy._core._exceptions._UFuncOutputCastingError: Cannot cast ufunc 'add' output from dtype('float64') to dtype('int64') with casting rule 'same_kind'...
- numpy.matrix.put
...ce Array objects Standard array subclasses numpy.matrix numpy.matrix.put...
- numpy.matrix.setfield
...numpy.matrix.setfield method matrix.setfield(val, dtype, offset=0) Put a value into a specified place in a field defined by a data-type. Place val into a’s field defined by dtype and begi...
- Standard array subclasses
...ndarray is possible but if your goal is to create an array with modified behavior, as do dask arrays for distributed computation and cupy arrays for GPU-based computation, subclassing is discouraged. Instead, using numpy’s dispatch mechanis...
- The N-dimensional array (
ndarray
)...nternal memory layout of an ndarray An instance of class ndarray consists of a contiguous one-dimensional segment of computer memory (owned by the array, or by some other object), combined with an indexing scheme that maps N integers into t...
- Array API
...ucture and data access These macros access the PyArrayObject structure members and are defined in ndarraytypes.h. The input argument, arr, can be any PyObject* that is directly interpretable as a PyArrayObject* (any instance of the PyArray_...
- Array objects
...tatypes Details of promoted dtype instances Iterating over arrays Single array iteration Broadcasting array iteration Putting the inner loop in Cython Standard array subclasses Special attributes and methods Matrix objects Memory-mapped...
- Glossary
...ue]) >>> x[mask] = -1 >>> x array([ 0, 1, 2, -1, -1]) masked arrayBad or missing data can be cleanly ignored by putting it in a masked array, which has an internal boolean array indicating invalid entries. Operations with masked arr...