On 8/24/06, Sasha <ndarray@mac.com> wrote:
On 8/24/06, Bill Baxter <wbaxter@gmail.com> wrote:
[snip] it would be nice to add a concise definition of "ufunc" to the numpy glossary: http://www.scipy.org/Numpy_Glossary.
done
Can anyone come up with such a definition?
I copied the definition from the old Numeric manual.
Here's my stab at it:
ufunc: A function that operates element-wise on arrays.
This is not entirely correct. Ufuncs operate on anything that can be passed to asarray: arrays, python lists, tuples or scalars.
Hey Sasha. Your defnition may be more correct, but I have to confess I don't understand it. "Universal function. Universal functions follow similar rules for broadcasting, coercion and "element-wise operation"." What is "coercion"? (Who or what is being coerced to do what?) and what does it mean to "follow similar rules for ... coercion"? Similar to what? --bill