pub const MAX_DIMENSION: u32 = 16_384;Expand description
Maximum supported dimension for any codec config or rotation matrix.
RotationMatrix::build allocates O(dim²) f64 storage and runs
O(dim³) QR. Capping at 16384 bounds peak rotation memory at
~2 GiB and keeps build time tractable on commodity hardware. The
largest production embedding sizes (e.g. 4096) sit well below this
cap. Phase 28.7 added the cap as defence-in-depth against DoS via
the new RotationMatrix::from_seed_and_dim PyO3 entry point.