Deterministic linear gauge library