Robert Kern <robert.k...@gmail.com> wrote: > That's fine if you only have one value for each operand. When you have > multiple values for each operand, say an exponent array containing > both positive and negative integers, that becomes a problem.
I don't really see why. If you have a negative integer in there you get a float array returned, otherwise it stays integer. > Generally, we try to make ufuncs return types that are predictable > from the types of the operands, not the values of the operands. Isn't that unpractical in this case? Who cares if the power operator behaves as an ufunc? Sturla _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion