There are instances where it is very convenient to have a function defined in the language of scalars that can operate on arrays. numpy.vectorize provides such a conversion.

In simplier language: This function basically makes a functions which calculate single values (e. g. math.sin) operate on array.

Some links and threads on this:

See also

Cookbook/Autovectorize (last edited 2008-12-08 17:23:37 by TimMichelsen)