← All notes

NumPy universal functions (ufuncs)

Answer: A universal function (or ufunc for short) is a function that operates on ndarrays in an element-by-element fashion, supporting array broadcasting, type casting, and several other standard features. (S1)

What a ufunc is

Arguments

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: NumPy docs, Universal functions (ufunc) basics — NumPy v2.5 Manual, BSD-3-Clause (numpy/numpy LICENSE.txt; Copyright (c) 2005-2026, NumPy Developers; https://github.com/numpy/numpy/blob/main/LICENSE.txt); NumPy docs, Universal functions (ufunc) — NumPy v2.5 Manual, BSD-3-Clause (numpy/numpy LICENSE.txt; Copyright (c) 2005-2026, NumPy Developers; https://github.com/numpy/numpy/blob/main/LICENSE.txt).

Cite this

Permanent ID: iil:note:5e3q85rn

iinventedlight. 2026. "NumPy universal functions (ufuncs)." iinventedlight Library, iil:note:5e3q85rn, version of 2026-11-04. https://iinventedlight.com/library/notes/numpy-ufuncs/. License: CC-BY-4.0.

@misc{iil_note_5e3q85rn,
  author = {{iinventedlight}},
  title = {{NumPy universal functions (ufuncs)}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/numpy-ufuncs/},
  note = {Permanent ID iil:note:5e3q85rn. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/numpy-ufuncs.md.