Skip to content
murmot

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

  • 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.The NumPy source code includes an example of a custom data-type as part of its test suite.

  • numpy.org

    F2PY examples — NumPy v2.6.dev0 Manual

    This example shows a function that filters a two-dimensional array of double precision floating-point numbers using a fixed averaging filter. The advantage of using Fortran to index into multi-dimensional arrays should be clear from this example.

  • numpy.org

    NumPy reference — NumPy v2.3 Manual

    Jun 9, 2025 ... Data type promotion in NumPy · Iterating over arrays · Standard array ... The reference documentation for many of the functions are written by ...

  • numpy.org

    How to extend NumPy — NumPy v2.1 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

    Data types — NumPy v1.25 Manual

    Data-types can be used as functions to convert python numbers to array scalars (see the array scalar section for an explanation), python sequences of numbers to arrays of that type, or as arguments to the dtype keyword that many numpy functions or methods accept.

  • numpy.org

    numpy.i: a SWIG interface file for NumPy — NumPy v2.6.dev0 Manual

    Likewise, ( DATA_TYPE IN_ARRAY2[ANY][ANY] ) is for two-dimensional arrays with hard-coded dimensions, and similarly for three-dimensional.If the array is not byte-swapped, return 1. Otherwise, set a Python error and return 0. require_dimensions(). Return type: int.