Skip to content
murmot

Results for “function return python array object example code error site:numpy.org command”

  • numpy.org

    NumPy: the absolute basics for beginners

    One major difference is that slice indexing of a list copies the elements into a new list, but slicing an array returns a view: an object that refers to the ...

  • numpy.org

    Array API — NumPy v2.6.dev0 Manual

    This is the main array creation function. Most new arrays are created with this flexible function. The returned object is an object of Python-type subtype, which must be a subtype of PyArray_Type. The array has nd dimensions, described by dims.

  • numpy.org

    numpy.array — NumPy v2.7.dev0 Manual

    An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0-dimensional array containing object is returned.

  • numpy.org

    Array API — NumPy v2.5 Manual

    Return -1 if an error occurs or 0 on success. Note. In general, prefer the use of PyArray_Pack when handling arbitrary Python objects. Setitem is for example ...

  • numpy.org

    Python types and C-structures — NumPy v2.1 Manual

    A pointer to a function that sets the Python object item into the array, arr, at the position pointed to by data . This function deals with “misbehaved” arrays. If successful, a zero is returned, otherwise, a negative one is returned (and a Python error set).

  • numpy.org

    Array objects — NumPy v2.5 Manual

    In addition to basic types (integers, floats, etc.), the data type objects can also represent data structures. An item extracted from an array, e.g., by indexing, is represented by a Python object whose type is one of the array scalar types built in NumPy. The array scalars allow easy manipulation of also more complicated arrangements of data.

  • numpy.org

    Beyond the Basics — NumPy v1.25 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).There are several examples of using the multi-iterator in the NumPy source code as it makes N-dimensional broadcasting-code very simple to write.

  • numpy.org

    Beyond the Basics — NumPy v1.21 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).There are several examples of using the multi-iterator in the NumPy source code as it makes N-dimensional broadcasting-code very simple to write.

  • numpy.org

    Beyond the Basics — NumPy v1.15 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray).There are several examples of using the multi-iterator in the NumPy source code as it makes N-dimensional broadcasting-code very simple to write.

  • numpy.org

    numpy.ndarray — NumPy v2.5 Manual

    An array object represents a multidimensional, homogeneous array of fixed-size items. An associated data-type object describes the format of each element in the array (its byte-order, how many bytes it occupies in memory, whether it is an integer, a floating point number, or something else, etc.)

  • numpy.org

    Array API — NumPy v1.17 Manual

    Feb 18, 2020 ... Data access¶. These functions and macros provide easy access to elements of the ndarray from C. These work for all arrays. You may need to take ...

  • numpy.org

    Standard array subclasses — NumPy v2.5 Manual

    Starting from numpy 1.4, if one needs arrays of strings, it is recommended to use arrays of dtype object_, bytes_ or str_, and use the free functions in the numpy.char module for fast vectorized string operations.

  • numpy.org

    Array creation — NumPy v2.7.dev0 Manual

    There are 6 general mechanisms for creating arrays: Conversion from other Python structures (i.e. lists and tuples). Intrinsic NumPy array creation functions ( ...