xtensor

Multi-dimensional arrays with broadcasting and lazy computing.

Introduction

xtensor is a C++ library meant for numerical analysis with multi-dimensionalarray expressions.

xtensor provides

  • an extensible expression system enablinglazy broadcasting.

  • an API following the idioms of theC++ standard library.

  • tools to manipulate array expressions and build uponxtensor.

Containers ofxtensor are inspired byNumPy, the Python array programminglibrary.Adaptors for existing data structures to be plugged into theexpression system can easily be written.

In fact,xtensor can be used toprocess NumPy data structures in-placeusing Python’sbuffer protocol. For more details on the NumPy bindings,check out thextensor-python project. Language bindings for R and Julia arealso available.

xtensor requires a modern C++ compiler supporting C++14. The following C++compilers are supported:

  • On Windows platforms, Visual C++ 2015 Update 2, or more recent

  • On Unix platforms, gcc 4.9 or a recent version of Clang

Licensing

We use a shared copyright model that enables all contributors to maintain thecopyright on their contributions.

This software is licensed under the BSD-3-Clause license. See the LICENSE filefor details.

USAGE

QUICK REFERENCE

API REFERENCE

MISCELLANEOUS