GTSAM is a library of C++ classes that implement smoothing and mapping (SAM) in robotics and vision, using factor graphs and Bayes networks as the underlying computing paradigm rather than sparse matrices.
A single executed notebook building and training a small GPT with RoPE and a phase-aware sparse MoE experiment