On Tue, May 24, 2016 at 9:41 AM, Alan Isaac <alan.is...@gmail.com> wrote:
> What exactly is the argument against *always* returning float > (even for positive integer exponents)? > If we were starting over from scratch, I would agree with you, but the int ** 2 example feels quite compelling to me. I would guess there lots of code out there that expects the result to have integer dtype. As a contrived example, I might write np.arange(n) ** 2 to produce an indexer for the diagonal elements of an array.
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion