Skip to content
murmot

Results for “python numpy array example api code site:mail.python.org cap”

  • mail.python.org

    [Numpy-discussion] NEP: array API standard adoption (NEP 47)

    Feb 21, 2021 · The main > > purpose of this API is to be able to write code that is portable to > > other > > array/tensor libraries like CuPy, PyTorch, JAX, TensorFlow, Dask, and > > MXNet. > > > > We expect this NEP to remain in draft state for quite a while, while > > we're > > gaining experience with using it in downstream libraries, discuss > > adding it ...

  • mail.python.org

    [C++-sig] numpy.ndarray did not match PyArrayObject *?

    I wrapped a c++ code which need accept numpy.ndarray as argument. > Here numpy.version='1.0rc1'. > And to the best of my knowledge, numpy.ndarray's c type is PyArrayObject. > >replace the indicated with the name of NumPy's python type object for ndarray.

  • mail.python.org

    Mailman 3 NEP 56: array API standard support in the main ...

    Having NumPy be a superset of the array API standard will be a significant improvement for code portability to other libraries (CuPy, JAX, PyTorch, etc.) and thereby address one of the top user requests from the 2020 NumPy user survey [4]_ (GPU support).

  • mail.python.org

    [Numpy-discussion] ragged array implimentation

    and returns > numpy object arrays, where the elements of the object arrays are > themselves 1d numpy arrays. I don't think there is any other way to do > it. In your example, the 'ragged' array would be a 1d numpy array with > dtype='O'...

  • mail.python.org

    [Matrix-SIG] Reading binary data from file into NumPy arrays ...

    Jun 18, 1998 · Hello all, I needed a relatively low-level method to load arbitrary binary data files into NumPy arrays, so I wrote C-extension code to do it after learning a little about the NumPy API through the source code. I've called the module numpyio and it allows reading and writing aribrary data-types to an open file stream.

  • mail.python.org

    Mailman 3 Search results for "closing csv file in numpy ...

    I ran the tests using the `runtests.py` script: *seed+1000, using 'python runtests.py -n' in the source directory:* 236 failed, 12881 passed, 1248 skipped, 585 deselected, 84 xfailed, 7 xpassed Most of the failures are in scipy.stats: *seed+1000, using 'python runtests.py -n -s stats' in the source directory:* 203 failed, 1034 passed, 4 skipped ...

  • mail.python.org

    [DB-SIG] NumPy, Python DB-API and MySQL

    If this direct MySQL-to-NumPy interface worked well, it might be desirable to add it to the Python DB-API specification for optional implementation in the other database modules which conform to the API.

  • mail.python.org

    [C++-sig] numpy.int32 -> double? - Python

    Apr 28, 2009 · When I build Visual for Python 2.6 and numpy 1.3.0, I get a failure on something that works on Python 2.5 with numpy 1.2.1. There is a vector (double,double,double) class in Visual which now fails if handed numpy.int32 arguments (works fine with numpy.float64 arguments).

  • mail.python.org

    [Tutor] solutions to API version mismatch - Python

    May 11, 2005 · My computer only has the following versions installed: Python 2.1.3+, 2.2.3+ and 2.3.4. I have changed my PYTHONPATH to use look for different site-packages (I've tried version 1.5 and 2.2 -- 1.5 was attempted in case the scripts were written in/during that version).