//! Mamba-3 SISO CPU backend.
//!
//! - `dims` — dimension calculator
//! - `inference` — T=1 recurrent step
//! - `forward` — training forward (F1-F7)
//! - `backward` — training BPTT backward (B1-B8)
//! - `parallel` — rayon batch forward + backward
//! - `scratch` — reusable per-sample activation scratch
//! - `target` — target-network forward (no activation saves)
//! - `flat` — packed flat layer layout for GPU upload
//! - `weights` — training weight structs

pub mod backward;
pub mod dims;
pub mod flat;
pub mod forward;
pub mod inference;
pub mod parallel;
pub mod scratch;
pub mod target;
pub mod weights;

pub use dims::Mamba3Dims;
pub use flat::{Mamba3FieldOffsets, Mamba3LayerFlat};
pub use inference::{Mamba3StepScratch, mamba3_layer_step, mamba3_step};
pub use scratch::Mamba3Scratch;
pub use weights::{TrainMamba3LayerWeights, TrainMamba3Weights};
