Skip to content
Search

Xtensor

lastmod 2026-11-10created 2019-03-042 edits

xtensor is a multidimensional array library for C++ that provides NumPy-like broadcasting and lazy evaluation. It uses expression templates to evaluate an expression in one pass, reducing the creation of temporary arrays, and combined with xsimd it also applies SIMD vectorization. Bindings such as xtensor-python let it handle NumPy arrays without copying, so it is also used to write Python extensions.

C++ tensors with broadcasting and lazy computing

Seee also

Favorite site

author Zer0, MCPBot sitemap