Skip to content
murmot

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

  • numpy.org

    Array API — NumPy v2.1 Manual

    This function returns a (C-style) contiguous and behaved function array from any nested sequence or array interface exporting object, op, of (non-flexible) type given by the enumerated typenum, of minimum depth min_depth, and of maximum depth max_depth.

  • numpy.org

    Interoperability with NumPy — NumPy v2.5 Manual

    The buffer protocol, described in the Python C-API documentation. The __array_interface__ protocol, described in this page. A precursor to Python’s buffer protocol, it defines a way to access the contents of a NumPy array from other C extensions. The __array__ () method, which asks an arbitrary object to convert itself into an array.

  • numpy.org

    Array API — NumPy v2.6.dev0 Manual

    It should return a -1 on error and 0 otherwise. Data access#. These functions and macros provide easy access to elements of the ndarray from C. These work for ...

  • numpy.org

    Array API — NumPy v1.14 Manual

    This function returns a (C-style) contiguous and behaved function array from any nested sequence or array interface exporting object, op, of (non-flexible) type given by the enumerated typenum, of minimum depth min_depth, and of maximum depth max_depth.

  • numpy.org

    Using NumPy C-API — NumPy v2.5 Manual

    Using NumPy C-API # How to extend NumPy Writing an extension module Required subroutine Defining functions Functions without keyword arguments Functions with keyword arguments Reference counting Dealing with array objects Converting an arbitrary sequence object Creating a brand-new ndarray Getting at ndarray memory and accessing elements of the ...

  • numpy.org

    Array API — NumPy v1.15 Manual

    This function returns a (C-style) contiguous and behaved function array from any nested sequence or array interface exporting object, op, of (non-flexible) type given by the enumerated typenum, of minimum depth min_depth, and of maximum depth max_depth.

  • numpy.org

    NumPy C-API — NumPy v2.5 Manual

    NumPy provides a C-API to enable users to extend the system and get access to the array object for use in other routines. The best way to truly understand the C-API is to read the source code.

  • numpy.org

    Array API — NumPy v1.19 Manual

    Returns an ndarray object from a Python object that exposes the __array_struct__ attribute and follows the array interface protocol. If the object does not contain this attribute then a borrowed reference to Py_NotImplemented is returned.

  • numpy.org

    NumPy C code explanations — NumPy v2.5 Manual

    The array scalars offer a hierarchy of Python types that allow a one-to-one correspondence between the datatype stored in an array and the Python-type that is returned when an element is extracted from the array.