NLA-lib Explorer

Best low-rank approximation with columns in a given range

Library · Source module

Best low-rank approximation with columns in a given range

For a matrix \mathbf{Q} with orthonormal columns, the approximations \mathbf{Q}\mathbf{B} of \mathbf{A} with \mathbf{B} of rank at most k are compared through the compression \mathbf{Q}^{\mathsf{H}}\mathbf{A}: the squared Frobenius error of \mathbf{Q}\mathbf{B} is the squared projection residual of \mathbf{A} plus the squared error of \mathbf{B} as an approximation of \mathbf{Q}^{\mathsf{H}}\mathbf{A}. By the Eckart–Young theorem the error is therefore least at \mathbf{B} = \llbracket \mathbf{Q}^{\mathsf{H}}\mathbf{A} \rrbracket_k. This is the truncation step of the randomized singular value decomposition, where \mathbf{Q} is the output of a range finder.

Main results

* NLAlib.HasOrthonormalCols.frobNorm_sub_mul_sq: the error split \|\mathbf{A} - \mathbf{Q}\mathbf{B}\|_{\mathsf{F}}^2 = \|(\mathbf{I} - \mathbf{Q}\mathbf{Q}^{\mathsf{H}})\mathbf{A}\|_{\mathsf{F}}^2 + \|\mathbf{Q}^{\mathsf{H}}\mathbf{A} - \mathbf{B}\|_{\mathsf{F}}^2. * NLAlib.HasOrthonormalCols.frobNorm_sub_mul_truncatedSVD_le_of_rank_le, NLAlib.HasOrthonormalCols.isLeast_frobNorm_sub_mul_of_rank_le: \mathbf{Q} \llbracket \mathbf{Q}^{\mathsf{H}}\mathbf{A} \rrbracket_k is a best approximation of \mathbf{A} among the matrices \mathbf{Q}\mathbf{B} with \mathbf{B} of rank at most k.

Declarations