Skip to content
murmot

Results for “function return python array java code c error 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

    numpy.arange — NumPy v2.7.dev0 Manual

    For integer arguments the function is roughly equivalent to the Python built-in range , but returns an ndarray rather than a range instance. When using a ...

  • numpy.org

    How to extend NumPy — NumPy v1.16 Manual

    The following example shows how you might write a wrapper that accepts two input arguments (that will be converted to an array) and an output argument (that must be an array). The function returns None and updates the output array.

  • numpy.org

    numpy.mean — NumPy v2.2 Manual

    Compute the arithmetic mean along the specified axis. Returns the average of the array elements. The average is taken over the flattened array by default, ...

  • numpy.org

    Array API — NumPy v1.13 Manual

    These functions are included here because they are used at least once in the array object’s methods. The function returns -1 (without setting a Python Error) if one of the objects being assigned is not callable.

  • 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 v2.1 Manual

    This function deals with “misbehaved” arrays. If successful, a zero is returned, otherwise, a negative one is returned (and a Python error set). void copyswapn(void *dest, npy_intp dstride, void *src, npy_intp sstride, npy_intp n, int swap, void *arr)#.

  • 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

    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.