Skip to main content

PyTNL

PyTNL provides Python bindings for the Template Numerical Library (TNL) — a modern C++ library for building efficient numerical solvers and HPC algorithms.

TNL targets multicore CPUs, GPUs (CUDA and ROCm/HIP) and distributed-memory systems (MPI) behind a unified programming model. PyTNL exposes selected TNL building blocks to Python, enabling Python-driven workflows while keeping performance-critical kernels in compiled backends.

Scope

PyTNL is intended for:

  • interoperability with TNL components where Python bindings are available,
  • prototyping and orchestration of numerical solvers or HPC workflows,
  • combining Python ergonomics with native code performance characteristics.

The exact set of exported classes and functions may evolve over time.

Highlights

TNL (and therefore PyTNL where bindings exist) provides building blocks such as:

  • CPU/GPU-aware data structures and memory utilities
  • parallel primitives (iteration patterns, reductions, scans)
  • linear algebra foundations (templated vectors, dense and sparse matrices, sparse data formats (segments))
  • iterative linear solvers and preconditioners (CG, BiCGStab, GMRES, Jacobi, etc.)
  • ODE solvers (Euler, Fehlberg, Kutta, Heun, Runge-Kutta-Merson, Matlab, etc.)
  • structured grid and unstructured mesh data structures (including distributed) and utilities, including import from FPMA, Netgen, VTK, VTU and PVTU formats

Documentation

PyTNL documentation (including installation instructions) is hosted on GitLab Pages: https://tnl-project.gitlab.io/pytnl/

License

PyTNL is provided under the terms of the MIT License.

Metadata

Release files for pytnl 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytnl 0.0.13
File Size Uploaded Provenance Actions
pytnl-0.0.13.tar.gz 315.2 kB Without provenance Details for pytnl-0.0.13.tar.gz

Release files / pytnl-0.0.13.tar.gz

Download URL pytnl-0.0.13.tar.gz
Size 315.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8835a4c56cb062b2358c979394198dc0310444d06dba2fe1adaaf448ea918a9e
BLAKE2b-256 checksum
How to use checksums
33352b2cf5387c799eece03e48ff3914b975dad2d879f633ef02bd102363f4f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Security for pytnl 0.0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page