Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
nanobind documentation
nanobind documentation
  • Changelog
  • Why another binding library?
  • Benchmarks
  • Porting guide
  • Frequently asked questions

Basics

  • Installing the library
  • Setting up a build system
  • Creating your first extension
  • Building extensions using Bazel
  • Building extensions using Meson

Intermediate

  • Exchanging information
  • Object ownership
  • Functions
  • Classes
  • Exceptions
  • N-dimensional arrays
    • The nb::ndarray<..> class
    • The Eigen linear algebra library
  • Reference leaks
  • Packaging
  • Typing
  • Utilities

Advanced

  • Free-threaded Python
  • Object ownership, continued
  • Low-level interface
  • Customizing type creation

API Reference

  • C++ API Reference (Core)
  • C++ API Reference (Extras)
  • CMake API Reference
  • Bazel API Reference (3rd party)
Back to top
View this page

N-dimensional arraysΒΆ

nanobind provides two alternative interfaces to exchange array data between Python and C++.

  • The nb::ndarray<..> class
  • The Eigen linear algebra library
Next
The nb::ndarray<..> class
Previous
Exceptions
Copyright © 2023, Wenzel Jakob
Made with Sphinx and @pradyunsg's Furo