Elixir grows a numerical backbone
Nx brings multi-dimensional arrays and compiler backends to Elixir so the ecosystem can manipulate tensors without outsourcing to another language.

What it does
This monorepo houses Nx, a library for multi-dimensional arrays and numerical definitions in Elixir, plus two backends: EXLA, which targets Google’s XLA compiler, and Torchx, which wraps LibTorch. It gives Elixir a foothold in tensor manipulation and numerical computing. Examples and benchmarks currently live inside the EXLA subproject.
The interesting bit
Elixir is not a language you typically associate with GPU acceleration or heavy numerical computing. Rather than reinvent linear algebra, Nx leans on established foreign compilers—Google’s XLA and PyTorch’s LibTorch—to do the heavy lifting. It is essentially a translation layer between Elixir and the industrial-grade backends that power those ecosystems.
Key highlights
Nxprovides multi-dimensional arrays and numerical definitions for ElixirEXLAbackend uses Google’s XLA compiler for accelerated linear algebraTorchxbackend wraps LibTorch to tap into the PyTorch ecosystem- The three projects currently share one repository but plan to be extracted into separate repositories later
- Examples and benchmarks are located in the
EXLAproject
Caveats
- The monorepo layout is temporary; the projects will be extracted into their own repositories in the future
- The top-level README is sparse—most detail lives in the individual subproject READMEs
Verdict
A solid bet if you want to do tensor work or machine learning in Elixir without leaving the language. If you do not use Elixir, this is mostly infrastructure news.
Frequently asked
- What is elixir-nx/nx?
- Nx brings multi-dimensional arrays and compiler backends to Elixir so the ecosystem can manipulate tensors without outsourcing to another language.
- Is nx open source?
- Yes — elixir-nx/nx is an open-source project tracked on heatdrop.
- What language is nx written in?
- elixir-nx/nx is primarily written in Elixir.
- How popular is nx?
- elixir-nx/nx has 2.9k stars on GitHub.
- Where can I find nx?
- elixir-nx/nx is on GitHub at https://github.com/elixir-nx/nx.