Skip to content
murmot

Results for “function return python array object string java code c site:numpy.org file”

  • numpy.org

    Python types and C-structures — NumPy v2.0 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

    numpy.lib.npyio.NpzFile

    NpzFile is used to load files in the NumPy .npz data archive format. Files containing arrays in .npy format are loaded as arrays; other files are returned as ...

  • numpy.org

    Python types and C-structures — NumPy v2.3 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

    NumPy C code explanations

    The interpretation of this memory depends on the stride information. For each dimension in an N -dimensional array, an integer ...

  • numpy.org

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

    Internally, the code uses some additional Python objects primarily for memory management. These types are not accessible directly from Python, and are not exposed to the C-API. They are included here only for completeness and assistance in understanding the code.

  • numpy.org

    How to extend NumPy — NumPy v1.20 Manual

    If multiple objects should be returned then you need to return a tuple. The Py_BuildValue (format_string, c_variables…) function makes it easy to build tuples of Python objects from C variables.

  • numpy.org

    numpy.ravel — NumPy v2.5 Manual

    A 1-D array, containing the elements of the input, is returned. A copy is made only if needed. As of NumPy 1.10, the returned array will have the same type as ...

  • numpy.org

    Python Types and C-Structures — NumPy v1.17 Manual

    Internally, the code uses some additional Python objects primarily for memory management. These types are not accessible directly from Python, and are not exposed to the C-API. They are included here only for completeness and assistance in understanding the code.

  • numpy.org

    NumPy quickstart — NumPy v2.7.dev0 Manual

    To create sequences of numbers, NumPy provides the arange function which is analogous to the Python built-in range , but returns an array. >>> np.arange(10, 30 ...

  • numpy.org

    numpy.arange — NumPy v2.7.dev0 Manual

    For integer arguments the function is roughly equivalent to the Python ... In this case, it ensures the creation of an array object compatible with that passed in ...