[Numpy-discussion] Current ufunc signatures for review
Charles R Harris
Tue May 27 16:21:26 CDT 2008
On Tue, May 27, 2008 at 2:52 PM, Robert Kern <email@example.com> wrote:
> On Tue, May 27, 2008 at 2:53 PM, Travis E. Oliphant
> <firstname.lastname@example.org> wrote:
> > Charles R Harris wrote:
> >> 2) Complex divmod(), // and % are deprecated, should we make them
> >> raise errors?
> > Sometimes you have float data that is complex because of an intermediate
> > calculation. I don't think we should cause these operations not to
> > work on Numeric data just because Python deprecated them. I'm actually
> > not sure why Python deprecated these functions.
> floor() isn't particularly well-defined in CC. I guess we could just
> round each .real and .imag component down to the next lowest integer
> and define Z1 % Z2 to be the remainder from that. The operations don't
> really make sense for most elements in CC, but it "smoothly"
> extrapolates from the RR results.
Yeah, something like that. For mod we have the lattice of Gaussian integers
times a complex is still a lattice which could be used to define the
equivalence classes, but I'm not sure quite what to do there.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion