NLA-lib Explorer

NLAlib.samplingInjectionDim

Library · def

The row-sampling injection size <!-- value samplingInjectionDim d L \varepsilon \delta --> 2 L \log(d/\delta)/\varepsilon^2: with at least this many samples, row sampling under leverage domination with constant L is a subspace injection with constant 1 - \varepsilon and failure probability \delta for a subspace of dimension d, for \varepsilon > 0 (NLAlib.hasSubspaceInjection_of_hasLaw_samplingSketch_of_samplingInjectionDim_le). The value the proof reaches, inverting d \, e^{-\varepsilon^2 k / (2L)} \le \delta (NLAlib.mul_exp_le_of_samplingInjectionDim_le); one tail, against the embedding's two. Consumers use NLAlib.samplingInjectionDim_le. Junk values: 0 at \varepsilon = 0; at most 0 for \delta \ge d, where the tail bound is at least 1.

NLAlib.samplingInjectionDim (d : ℕ) (L ε δ : ℝ) : ℝ

Full source on GitHub

Import NLAlib.Sketching.Sampling.RowSampling.