What is xtensor-python?
masterxtensor-python provides Python bindings for the xtensor C++ multi-dimensional array library. It allows for the in-place use of NumPy arrays within C++ code, enabling you to leverage xtensor's features directly on Python data structures.
Key capabilities include:
- C++ Universal Functions (ufuncs): Applying C++ scalar functions to NumPy arrays.
- Broadcasting: Using
xtensor's broadcasting rules on NumPy arrays. - STL Compliance: Providing APIs that are compliant with the C++ Standard Template Library.
- Seamless Interoperability: Using Python's
Buffer Protocolviapybind11to access NumPy data structures in C++ without exposing new types to Python.