Universal function methods

How can functions have methods? As we said earlier, universal functions are not functions but Python objects representing functions. Universal functions have five important methods listed as follows:

  1. ufunc.reduce(a[, axis, dtype, out, keepdims])
  2. ufunc.accumulate(array[, axis, dtype, out])
  3. ufunc.reduceat(a, indices[, axis, dtype, out])
  4. ufunc.outer(A, B)
  5. ufunc.at(a, indices[, b])])])

Get NumPy : Beginner's Guide - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.