[Numpy-discussion] ufunc broadcast for object arrays

Sasha ndarray at mac.com
Thu Mar 30 19:55:01 CST 2006


On 3/30/06, Simon Burton <simon at arrowtheory.com> wrote:
>
> >>> a=numpy.array(list('foabcdeef'),dtype=numpy.dtype("O"))
> >>> numpy.equal(a,'f')
> NotImplemented
>
> So where do I start implementing this ?
>  core/src/ufuncobject.c ?
>

Yes,

    879                 if (PyTypeNum_ISFLEXIBLE(arg_types[i])) {
    880                         loop->notimplemented = 1;
    881                         return nargs;
    882                 }

(line numbers from r2310)




More information about the Numpy-discussion mailing list