API reference#

The library has two documented layers (see User guide “Frontend and backend”):

  • the frontend – classes re-exported at the package root (import t3toolbox);

  • the backend – stateless functions on raw .data tuples, imported explicitly by submodule (from t3toolbox.backend import probing). The backend is a first-class surface: everything the frontend does is available here.

The frontend surface#

Everything below is importable directly from t3toolbox.

Tensors

Frames, variations, tangents

Geometries

Weights

Fitting and optimization

Safety

  • safety with the safe() / unsafe() context managers – the ambient numerical-precondition mode. Module-level helpers: SafetyTolerances, set_default_safety, current_safety, effective_rtol, comparison_rtol, checks_active, require, frames_equal, frames_equal_or_skip, is_tracing, and the DEFAULT_RTOL_* constants.

The backend surface#

Backend modules follow the family-prefix grammar (t3_ ragged tensor, ut3_ uniform tensor, tv_/utv_ tangent-variations, fv_/ufv_ frame-variations, tt_ bare TT chains, dense_ dense reference) – the complete grammar, module map, and deliberate exceptions are in Naming conventions. By area:

Note

The rendered signatures on the module pages are regenerated from the parsed source, so each function page also shows the verbatim source signature – including the trailing shape-contract comments, which are the real type contract (Signature style — shape comments as the real type system).

Complete module pages#