Skip to content
murmot

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

  • numpy.org

    Beyond the basics — NumPy v2.5.dev0 Manual

    An array iterator object is returned when accessing the .flat attribute of an array.Fill in a new Python type-object structure with pointers to new functions that will over-ride the default behavior while leaving any function that should remain the same unfilled (or NULL).

  • numpy.org

    Array API — NumPy v2.1 Manual

    Sets the memory location item of dtype descr to value . The function is equivalent to setting a single array element with a Python assignment. Returns 0 on ...

  • numpy.org

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

    A pointer to a function that returns a standard Python object from a single element of the array object arr pointed to by data. This function must be able to deal with “misbehaved “(misaligned and/or swapped) arrays correctly.

  • numpy.org

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

    A pointer to a function that returns a standard Python object from a single element of the array object arr pointed to by data. This function must be able to deal with “misbehaved “(misaligned and/or swapped) arrays correctly.

  • numpy.org

    Array creation — NumPy v2.5 Manual

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

  • numpy.org

    Indexing on ndarrays — NumPy v2.5 Manual

    Slice objects can be used in the construction in place of the [start:stop:step] notation. For example, x[1:10:5, ::-1] can also be implemented as obj = (slice(1, 10, 5), slice(None, None, -1)); x[obj] . This can be useful for constructing generic code that works on arrays of arbitrary dimensions.

  • numpy.org

    ufunc API — NumPy v2.6.dev0 Manual

    Used in universal function code to only release the Python GIL if loop->obj is not true (i.e. this is not an OBJECT array loop). Requires use of ...

  • numpy.org

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

    A pointer to a function that returns a standard Python object from a single element of the array object arr pointed to by data. This function must be able to deal with “misbehaved “(misaligned and/or swapped) arrays correctly.

  • numpy.org

    NumPy: the absolute basics for beginners

    You can use the view method to create a new array object ... By default, every NumPy aggregation function will return the aggregate of the entire array.

  • numpy.org

    Array API — NumPy v1.17 Manual

    Feb 18, 2020 ... Returns the total number of bytes consumed by the array. Data access¶. These functions and macros provide easy access to elements of the ndarray ...