Skip to content
murmot

Results for “function return python array code site:numpy.org c#”

  • numpy.org

    numpy.dot — NumPy v2.5 Manual

    Returns the dot product of a and b. If a and b are both scalars or both 1-D arrays then a scalar is returned; otherwise an array is returned. If out is given, ...

  • numpy.org

    Beyond the Basics — NumPy v1.24 Manual

    If the __array_finalize__ attribute is not None nor a PyCapsule, then it must be a Python method that takes the parent array as an argument (which could be None if there is no parent), and returns nothing. Errors in this method will be caught and handled.

  • numpy.org

    numpy.var — NumPy v2.3 Manual

    Returns the variance of the array elements, a measure of the spread of a distribution. The variance is computed for the flattened array by default, otherwise ...

  • numpy.org

    Beyond the basics — NumPy v2.5.dev0 Manual

    If the __array_finalize__ attribute is not None nor a PyCapsule, then it must be a Python method that takes the parent array as an argument (which could be None if there is no parent), and returns nothing. Errors in this method will be caught and handled.

  • numpy.org

    Beyond the basics — NumPy v2.0 Manual

    If the __array_finalize__ attribute is not None nor a PyCapsule, then it must be a Python method that takes the parent array as an argument (which could be None if there is no parent), and returns nothing. Errors in this method will be caught and handled.

  • numpy.org

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

    A pointer to a function that returns a standard Python object from a single element of the array object arr pointed to by data. This function must be able to deal with “misbehaved “ (misaligned and/or swapped) arrays correctly.

  • numpy.org

    numpy.fft.fft — NumPy v2.5 Manual

    If provided, the result will be placed in this array. It should be of the appropriate shape and dtype. New in version 2.0.0. Returns:.

  • 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.array — NumPy v2.5 Manual

    numpy.array # numpy.array(object, dtype=None, *, copy=True, order='K', subok=False, ndmin=0, ndmax=0, like=None) # Create an array. Parameters: objectarray_like 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. dtypedata-type, optional The ...

  • numpy.org

    numpy.lib.format — NumPy v2.5 Manual

    npy format is the standard binary file format in NumPy for persisting a single arbitrary NumPy array on disk. The format stores all of the shape and dtype ...

  • numpy.org

    Beyond the Basics — NumPy v1.25 Manual

    If the __array_finalize__ attribute is not None nor a PyCapsule, then it must be a Python method that takes the parent array as an argument (which could be None if there is no parent), and returns nothing. Errors in this method will be caught and handled.

  • numpy.org

    numpy.ndarray.ctypes — NumPy v2.5 Manual

    numpy.ndarray.ctypes # attribute ndarray.ctypes # An object to simplify the interaction of the array with the ctypes module. This attribute creates an object that makes it easier to use arrays when calling shared libraries with the ctypes module. The returned object has, among others, data, shape, and strides attributes (see Notes below) which themselves return ctypes objects that can be used ...

  • numpy.org

    numpy.fft.rfft

    This function computes the one-dimensional n-point discrete Fourier Transform (DFT) of a real-valued array ... Returns: outcomplex ndarray. The truncated or ...

  • numpy.org

    Iterating over arrays — NumPy v2.5 Manual

    Iterating over arrays # Note Arrays support the iterator protocol and can be iterated over like Python lists. See the Indexing, slicing and iterating section in the Quickstart guide for basic usage and examples. The remainder of this document presents the nditer object and covers more advanced usage.