Skip to main content
. Author manuscript; available in PMC: 2014 Nov 20.
Published in final edited form as: SIAM J Sci Comput. 2014;36(2):C95–C118. doi: 10.1137/120866580

Algorithm 2.

LSRN (computes Ab when mn).

  1. Choose an oversampling γ > 1 and set s = ⌈γm⌉.

  2. Generate G = randn(n, s), i.e., an n-by-s random matrix whose entries are independent random variables following the standard normal distribution.

  3. Compute à = AG.

  4. Compute Ã’s compact SVD ŨΣ̃T, where r = rank(Ã), Ũ ∈ ℝn × r, Σ̃ ∈ ℝr × r, ∈ ℝs × r, and only Ũ and Σ̃ are needed.

  5. Let M = ŨΣ̃−1.

  6. Compute the min-length solution to minxMTAxMTb2 using an iterative method, denoted by .

  7. Return .