Search
Search Results
Search finished, found 21 page(s) matching the search query.
- Byte-swapping
...NumPy user guide Under-the-hood documentation for developers Byte-swapping...
- Byte-swapping
...NumPy user guide Under-the-hood documentation for developers Byte-swapping...
- NumPy 2.0.0 Release Notes
...rs support for calculating the matrix transpose of an array (or stack of arrays). The matrix transpose is equivalent to swapping the last two axes of an array. Both np.ndarray and np.ma.MaskedArray now expose a .mT attribute, and there is a...
- Structured arrays
...('c', '<f4')]) This obeys the structured array assignment rules described above. For example, this means that one can swap the values of two fields using appropriate multi-field indexes: >>> a[['a', 'c']] = a[['c', 'a']] Indexing with...
- Array API
...writeable, aligned, and in machine byte-order using PyArray_FromAny. If you wish to handle all types of arrays, the copyswap function for each type is useful for handling misbehaved arrays. Some platforms (e.g. Solaris) do not like misalign...
- How to extend NumPy
...AYMake sure the resulting object is an actual ndarray and not a sub- class. Note Whether or not an array is byte-swapped is determined by the data-type of the array. Native byte-order arrays are always requested by PyArray_FROM_OTF a...
- NumPy 1.21.0 Release Notes
...np.random.Generator.uniform. Raises ValueError if low > high. Previously out-of-order inputs were accepted and silently swapped, so that if low > high, the value generated was high + (low - high) * random(). (gh-17921) /usr/include remove...
- NumPy 1.24 Release Notes
..._bit_gen = np.random.get_bit_generator() >>> np.random.set_bit_generator(rg.bit_generator) >>> np.random.normal() The swap is permanent (until reversed) and so any call to functions in the random module will use the new bit generator. The...
- numpy.char.chararray.byteswap
...numpy.char.chararray.byteswap...
- numpy.dtype.byteorder
...the byteorder >>> import sys >>> sys_is_le = sys.byteorder == 'little' >>> native_code = '<' if sys_is_le else '>' >>> swapped_code = '>' if sys_is_le else '<' >>> dt = np.dtype(native_code + 'i2') >>> dt.byteorder '=' >>> # Swapped code s...
- numpy.dtype.newbyteorder
...ing, optionalByte order to force; a value from the byte order specifications below. The default value (‘S’) results in swapping the current byte order. new_order codes can be any of: ‘S’ - swap dtype from current to opposite endian {‘<’,...
- numpy.i: a SWIG interface file for NumPy
...(a)). array_is_native(a)Evaluates as true if the data buffer of a uses native byte order. Equivalent to (PyArray_ISNOTSWAPPED(a)). array_is_fortran(a)Evaluates as true if a is FORTRAN ordered. Routines pytype_string()Return type: co...
- numpy.ma.masked_array.byteswap
...numpy.ma.masked_array.byteswap...
- numpy.ma.MaskedArray.byteswap
...ay objects Masked arrays Constants of the numpy.ma module numpy.ma.MaskedArray.byteswap...
- numpy.matrix.byteswap
...Array objects Standard array subclasses numpy.matrix numpy.matrix.byteswap...
- numpy.memmap.byteswap
...numpy.memmap.byteswap...
- numpy.ndarray.byteswap
...Array objects The N-dimensional array (ndarray) numpy.ndarray numpy.ndarray.byteswap...
- numpy.recarray.byteswap
...Array objects Standard array subclasses numpy.recarray numpy.recarray.byteswap...
- Python types and C-structures
...al features. Not all of these function pointers must be defined for a given type. The required members are nonzero, copyswap, copyswapn, setitem, getitem, and cast. These are assumed to be non- NULL and NULL entries will cause a program cra...
- Under-the-hood documentation for developers
...Py; focused towards developers. Internal organization of NumPy arrays NumPy C code explanations Memory alignment Byte-swapping Writing custom array containers Subclassing ndarray...
- Universal functions (
ufunc
) basics...ting on your large (small precision) array. Use of internal buffers Internally, buffers are used for misaligned data, swapped data, and data that has to be converted from one data type to another. The size of internal buffers is settable...