triqs.utility

General-purpose helper utilities used throughout TRIQS.

This package bundles small standalone modules that support the rest of the TRIQS Python layer.

Only triqs.utility.capture_stdout.capture_stdout() is re-exported at the package level; the rest is reached via the corresponding submodule.

Modules

bound_and_bisect

One-dimensional root finding by bracketing and bisection.

capture_stdout([iterable])

Context manager that captures sys.stdout into a list of lines.

comparison_tests

Numerical equality assertions for arrays and Green's functions.

dichotomy

Dichotomy / regula-falsi solver for \(y = f(x)\).

dist_on_nodes

Master / worker pattern for distributing a function evaluation over MPI.

h5diff

TRIQS-aware comparison of two HDF5 archives.

mpi

Runtime-dispatched MPI facade for TRIQS.

mpi_mpi4py

mpi4py-backed implementation of the TRIQS MPI interface.

mpi_nompi

Serial stub implementation of the TRIQS MPI interface.

redirect

Pipe-based redirection of the C++ stdout back to Python.

utilities

Utilities generated from C++ code in triqs/utility.