Skip to content
murmot

Results for “python numpy array example api code 1 package site:mail.python.org failed”

  • mail.python.org

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

    The scope of this NEP includes: - Adopting the 2021 version of the array API standard - Adding a separate namespace, tentatively named ``numpy.array_api`` - Changes needed/desired outside of the new namespace, for example new dunder methods on the ``ndarray`` object - Implementation choices, and differences between functions in the new ...

  • mail.python.org

    [Numpy-discussion] I must be wrong? -- endian detection failure on...

    I don't really believe this is a numpy bug that hasn't been detected, so > it must be something weird about my setup, but I can't figure it out. > Here goes. > >For the record, including the same header files as the failing code and > compiling with the same command-line args I get

  • 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

    [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).

  • 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

    [Numpy-discussion] np.sign and object comparisons - Python

    Sep 2, 2015 · For example, arccos is a ufunc that has no pure python equivalent, so you get the following behavior >>> a = np.array ( [-1], dtype='O') >>> np.abs (a) array ( [1], dtype=object) >>> np.arccos (a) AttributeError: 'int' object has no attribute 'arccos' >>> class MyClass: ... def arccos (self): ... return 1 >>> b = np.array ( [MyClass ()], dtype ...

  • mail.python.org

    [python-win32] How to write a COM Server implementing ...

    It seems I *can* make this work with the pythoncom test object. I created a structure with no GUID in a TLB with a name StructWithoutUUID. Then, I used the code at the end of this message as a quick hack to try out the SetGuid and the output is: """ as expected, failed to create the record normally: The structure 'StructWithoutUUID' is not defined in module '<module 'win32com.gen_py.6BCD ...

  • mail.python.org

    Mailman 3 __init_subclass__ and metaclasses - Python-Dev ...

    PEP 487 introduced __init_subclass__ and __set_name__, and both of those were wins for the common cases of metaclass usage. Unfortunately, the implementation of PEP 487 with regards to __init_subclass__ has made the writing of correct metaclasses significantly harder, if not impossible. The cause is that when a metaclass calls type.__new__ to actually create the class, type.__new__ calls the ...