Skip to content
murmot

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

  • numpy.org

    numpy.ravel — NumPy v2.5 Manual

    Return a contiguous flattened array. A 1-D array, containing the elements of ... (for example, a masked array will be returned for a masked array input).

  • numpy.org

    numpy.i: a SWIG Interface File for NumPy — NumPy v1.19 Manual

    The Python user does not pass these arrays in, they simply get returned. For the case where a dimension is specified, the python user must provide that dimension as an argument.If the array has the specified shape, return 1. Otherwise, set the Python error string and return 0.

  • numpy.org

    NumPy reference — NumPy v2.5 Manual

    Jun 28, 2026 · NumPy reference # Release: 2.5 Date: June 28, 2026 This reference manual details functions, modules, and objects included in NumPy, describing what they are and what they do. For learning how to use NumPy, see the complete documentation. Python API #

  • 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.i: a SWIG interface file for NumPy — NumPy v2.1 Manual

    The Python user does not pass these arrays in, they simply get returned. For the case where a dimension is specified, the python user must provide that dimension as an argument.If the array has the specified shape, return 1. Otherwise, set the Python error string and return 0.

  • 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

    String functionality — NumPy v2.5 Manual

    String functionality # The numpy.strings module provides a set of universal functions operating on arrays of type numpy.str_ or numpy.bytes_. For example, Try it in your browser!

  • 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

    numpy.array — NumPy v2.5 Manual

    An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. If object is a scalar, a 0-dimensional array containing object is returned.

  • 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

    Array creation — NumPy v1.20 Manual

    Jan 31, 2021 · Converting Python array_like Objects to NumPy Arrays ¶ In general, numerical data arranged in an array-like structure in Python can be converted to arrays through the use of the array () function. The most obvious examples are lists and tuples. See the documentation for array () for details for its use.

  • numpy.org

    numpy.average — NumPy v2.3 Manual

    Compute the weighted average along the specified axis. Parameters: aarray_like. Array containing data to be averaged. If a is not an array, a ...

  • numpy.org

    Array creation — NumPy v2.5 Manual

    Introduction # There are 6 general mechanisms for creating arrays: Conversion from other Python structures (i.e. lists and tuples) Intrinsic NumPy array creation functions (e.g. arange, ones, zeros, etc.) Replicating, joining, or mutating existing arrays Reading arrays from disk, either from standard or custom formats Creating arrays from raw bytes through the use of strings or buffers Use of ...

  • numpy.org

    numpy.polyfit — NumPy v2.5 Manual

    Returns a vector of coefficients p that minimises the squared error in the order deg, deg-1, … 0. The Polynomial.fit class method is recommended for new code as ...