[Numpy-discussion] What type should / return in python 3kwhen applied to two integer types?
Fri Aug 28 11:36:28 CDT 2009
On Aug 28, 2009, at 11:31 AM, Charles R Harris wrote:
> On Fri, Aug 28, 2009 at 9:47 AM, Citi, Luca <email@example.com> wrote:
> > The main issue is probably just choosing an appropriate float return
> > type, and personally I believe this should be same as numpy's
> > float.
> I completely agree.
> Maybe we could let the user decide whether to use a different type.
> It is already somehow possible through the "out" argument.
> >>> np.true_divide(a, b, np.empty(a.shape, dtype=np.float32))
> but clearly a but clumsy.
> The numpy true_divide function can be changed at runtime through the
> python interface, one isn't stuck with the defaults for any of the
> python parsed numeric methods. However, changing the defaults might
> lead to code portability problems. I think it was a bad idea to have
> that facility...
I see you have not been converted to the power of the with statement
to create local environments... --- probably it's a good thing you
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion