Skip to content
murmot

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

  • numpy.org

    Using NumPy C-API — NumPy v2.5 Manual

    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 ndarray Example Using Python as glue Calling other compiled ...

  • numpy.org

    Beyond the Basics — NumPy v1.15 Manual

    This is the object returned from the Python command numpy.broadcast and it is almost as easy to use from C. The function PyArray_MultiIterNew ( n, ... ) is used (with n input objects in place of ... ). The input objects can be arrays or anything that can be converted into an array.

  • numpy.org

    How to extend NumPy — NumPy v1.16 Manual

    All array creation functions go through this heavily re-used code. Because of its flexibility, it can be somewhat confusing to use.The function returns None and updates the output array. Note the updated use of WRITEBACKIFCOPY semantics for NumPy v1.14 and above.

  • numpy.org

    NumPy documentation — NumPy v2.5 Manual

    Version: 2.5 Download documentation: Historical versions of documentation Useful links: Home | Installation | Source Repository | Issue Tracker | Q&A Support | Mailing List NumPy is the fundamental package for scientific computing in Python. It is a Python library that provides a multidimensional array object, various derived objects (such as masked arrays and matrices), and an assortment of ...

  • numpy.org

    Beyond the basics — NumPy v2.5.dev0 Manual

    The returned object is an array-iterator object (the same object returned by the .flat attribute of the ndarray). This object is usually cast to PyArrayIterObject* so that its members can be accessed.

  • 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

    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.