Skip to main content
. Author manuscript; available in PMC: 2014 Oct 9.
Published in final edited form as: KDD. 2012;2012:480–488. doi: 10.1145/2339530.2339609

Algorithm 1.

Exact solution of (3)

Input: A, Z, sr(A)
Output: A global minimizer Θ of (3)
Function: LSRM(A, Z, s)
  1: if A is nonsingular then
  2:   Θ = A−1s(Z)
  3: else
  4:   Perform SVD on A: A = UDVT
  5:   Extract the first r rows of UTZ and denote it as Wr(A)
  6   Θ=V[Dr(A)1s(Wr(A))0]
  7: end if
  8: return Θ