Skip to content
murmot

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

  • 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 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

    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

    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

    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

    The array interface protocol — NumPy v2.5 Manual

    The homogeneous N-dimensional array interface is a default mechanism for objects to share N-dimensional array memory and information. The interface consists of a Python-side and a C-side using two attributes.

  • numpy.org

    numpy.maximum — NumPy v2.2 Manual

    Element-wise maximum of array elements. Compare two arrays and return a new array containing the element-wise maxima. If one of the elements being compared is a ...

  • numpy.org

    Python Types and C-Structures — NumPy v1.20 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-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.meshgrid — NumPy v2.5 Manual

    Return a tuple of coordinate matrices from coordinate vectors. Make N-D coordinate arrays for vectorized evaluations of N-D scalar/vector fields over N-D grids, ...

  • numpy.org

    Python Types and C-Structures — NumPy v1.24 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

    Array API — NumPy v2.6.dev0 Manual

    The memory for the array can be set to zero if desired using PyArray_FILLWBYTE (return_object, 0).This function cannot be used to create a flexible-type array (no itemsize given).

  • numpy.org

    numpy.append — NumPy v2.5 Manual

    Append values to the end of an array. Parameters: arrarray_like. Values are appended to a copy of this array. valuesarray_like.

  • numpy.org

    Python Types and C-Structures — NumPy v1.22 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.array2string — NumPy v2.5 Manual

    Notes If a formatter is specified for a certain type, the precision keyword is ignored for that type. This is a very flexible function; array_repr and array_str are using array2string internally so keywords with the same name should work identically in all three functions. Examples Try it in your browser!

  • numpy.org

    Array objects — NumPy v2.5 Manual

    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.