https://github.com/xtensor-stack/xtensor-polyglot
An interactive demo of the xtensor language bindings.
https://github.com/xtensor-stack/xtensor-polyglot
Last synced: 5 months ago
JSON representation
An interactive demo of the xtensor language bindings.
- Host: GitHub
- URL: https://github.com/xtensor-stack/xtensor-polyglot
- Owner: xtensor-stack
- License: bsd-3-clause
- Created: 2019-08-28T14:06:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-08-28T00:29:21.000Z (over 3 years ago)
- Last Synced: 2025-04-09T09:51:48.711Z (9 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 4.88 KB
- Stars: 9
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xtensor-polyglot
[](https://mybinder.org/v2/gh/xtensor-stack/xtensor-polyglot/master?filepath=polyglot.ipynb)
An interactive demonstration of the xtensor language bindings.
## Usage
To launch the demo, simply click on the binder badge in the header or on the link below.
[](https://mybinder.org/v2/gh/xtensor-stack/xtensor-polyglot/master?filepath=polyglot.ipynb)
## Background
[xtensor](https://github.com/xtensor-stack/xtensor/) is a C++ library meant for numerical analysis with multi-dimensional array expressions. The xtensor framework includes several components which can be used to operate on the data structures of the main languages of data sciences, [xtensor-python](https://github.com/xtensor-stack/xtensor-python/) for Python and NumPy, [xtensor-julia](https://github.com/xtensor-stack/xtensor-julia/) for Julia, and [xtensor-r](https://github.com/xtensor-stack/xtensor-r/) for the R programming language.
In the example notebook, we write a simple numerical function in pure C++, which is first tested in the [xeus-cling](https://github.com/jupyter-xeus/xeus-cling) Jupyter kernel. We then expose the function to Python, R, and Julia using the xtensor language bindings.
The example notebook is powered by the [allthekernels](https://github.com/minrk/allthekernels) project, a multiplexer Jupyter kernel which can be used to switch between all the kernels installed in a Jupyter environment.
## License
We use a shared copyright model that enables all contributors to maintain the
copyright on their contributions.
This software is licensed under the BSD-3-Clause license. See the
[LICENSE](LICENSE) file for details.