Block Golub–Kahan bidiagonalization with full reorthogonalization
Library · Source module
Block Golub–Kahan bidiagonalization with full reorthogonalization
Block Golub–Kahan bidiagonalization of \mathbf{A} (m \times n) from a start block \mathbf{\Omega} (n \times \mathbf{b}), q steps, in exact arithmetic and for an abstract orthogonalization scheme. With \operatorname{extend}(\mathbf{Q}, \mathbf{W}) any exact extension of a basis by a block (NLAlib.IsBasisExtension): \mathbf{V}_0, \mathbf{R}_0 = \operatorname{extend}(\emptyset, \mathbf{\Omega}) and, for j < q, \mathbf{U}_j = \operatorname{extend}(\mathbf{U}_{<j}, \mathbf{A}\mathbf{V}_j) with coefficients in block column j of \mathbf{R}, then \mathbf{V}_{j+1} = \operatorname{extend}(\mathbf{V}_{\le j}, \mathbf{A}^{\mathsf{H}}\mathbf{U}_j) with coefficients in block column j of \mathbf{S}. The scheme is not a function of its input (it chooses which columns are zero), so the process is the relation NLAlib.IsBlockGolubKahan on the stored matrices, not a recurrence. Design: docs/design/LowRank-BlockLanczos.md §3.1.
Encoding. All blocks have width \mathbf{b} and are stored side by side: \mathbf{U} is m \times q\mathbf{b}, \mathbf{V} is n \times (q+1)\mathbf{b}, \mathbf{R} is q\mathbf{b} \times q\mathbf{b} and \mathbf{S} is (q+1)\mathbf{b} \times q\mathbf{b}. Block j of the columns is NLAlib.blockCols, the first j blocks are NLAlib.blockPrefix; for the rows of a coefficient matrix the same two selections are NLAlib.blockRows and NLAlib.blockRowPrefix. All four are total (zero outside the matrix), so no index arithmetic appears in a type beyond the widths j\mathbf{b} and \mathbf{b}. In step j the coefficients against the old basis are the first j row blocks of block column j of \mathbf{R} (the first j + 1 for \mathbf{S}), the coefficients against the new block are row block j (row block j + 1 for \mathbf{S}), and the rows below are zero. The empty basis of the start block is the prefix of zero blocks of \mathbf{V}, a matrix with no columns. In the names, left refers to \mathbf{U} and \mathbf{R}, right to \mathbf{V} and \mathbf{S}.
Main definitions
* NLAlib.IsBlockGolubKahan: the process as a relation on the stored matrices.
Main results
* NLAlib.IsBlockGolubKahan.gramDefect_left_eq_zero, NLAlib.IsBlockGolubKahan.gramDefect_right_eq_zero, NLAlib.IsBlockGolubKahan.gramDefect_blockPrefix_left_eq_zero, NLAlib.IsBlockGolubKahan.gramDefect_blockPrefix_right_eq_zero: the nonzero columns of both bases are orthonormal. * NLAlib.IsBlockGolubKahan.range_blockPrefix_right, NLAlib.IsBlockGolubKahan.range_blockPrefix_left: the first blocks span the block Krylov spaces of \mathbf{A}^{\mathsf{H}}\mathbf{A} and their images under \mathbf{A}. * NLAlib.IsBlockGolubKahan.mul_conjTranspose_left_eq_rangeProjector: \mathbf{U}\mathbf{U}^{\mathsf{H}} is the projector onto the range of \mathbf{A} times the block Krylov matrix. * NLAlib.IsBlockGolubKahan.mul_blockPrefix_right_eq, NLAlib.IsBlockGolubKahan.conjTranspose_mul_left_eq: the two block relations \mathbf{A}\mathbf{V}_{<q} = \mathbf{U}\mathbf{R} and \mathbf{A}^{\mathsf{H}}\mathbf{U} = \mathbf{V}\mathbf{S}. * NLAlib.IsBlockGolubKahan.mul_conjTranspose_mul_conjTranspose_eq_rsvd: the factored output \mathbf{U}\mathbf{S}^{\mathsf{H}}\mathbf{V}^{\mathsf{H}} is the randomized SVD approximation at the block Krylov matrix, for every input and every exact scheme. * NLAlib.IsBlockGolubKahan.coef_left_eq, NLAlib.IsBlockGolubKahan.coef_right_eq, NLAlib.IsBlockGolubKahan.coef_left_eq_conjTranspose_blockRowPrefix: the coefficient matrices are the projected matrices, and \mathbf{R} is the adjoint of the first q\mathbf{b} rows of \mathbf{S}. * NLAlib.IsBlockGolubKahan.blockTriangular_left, NLAlib.IsBlockGolubKahan.coef_left_apply_eq_zero_of_add_lt, NLAlib.IsBlockGolubKahan.coef_right_apply_eq_zero_of_add_lt, NLAlib.IsBlockGolubKahan.coef_right_apply_eq_zero_of_lt: the band structure. * NLAlib.exists_isBasisExtension, NLAlib.exists_isBlockGolubKahan: an exact extension and a run of the process exist for every input.
Declarations
- NLAlib.IsBlockGolubKahan
- NLAlib.IsBlockGolubKahan.blockTriangular_left
- NLAlib.IsBlockGolubKahan.coef_left_apply_eq_zero_of_add_lt
- NLAlib.IsBlockGolubKahan.coef_left_eq
- NLAlib.IsBlockGolubKahan.coef_left_eq_conjTranspose_blockRowPrefix
- NLAlib.IsBlockGolubKahan.coef_right_apply_eq_zero_of_add_lt
- NLAlib.IsBlockGolubKahan.coef_right_apply_eq_zero_of_lt
- NLAlib.IsBlockGolubKahan.coef_right_eq
- NLAlib.IsBlockGolubKahan.conjTranspose_mul_left_eq
- NLAlib.IsBlockGolubKahan.gramDefect_blockPrefix_left_eq_zero
- NLAlib.IsBlockGolubKahan.gramDefect_blockPrefix_right_eq_zero
- NLAlib.IsBlockGolubKahan.gramDefect_left_eq_zero
- NLAlib.IsBlockGolubKahan.gramDefect_right_eq_zero
- NLAlib.IsBlockGolubKahan.mul_blockPrefix_right_eq
- NLAlib.IsBlockGolubKahan.mul_conjTranspose_left_eq_rangeProjector
- NLAlib.IsBlockGolubKahan.mul_conjTranspose_mul_conjTranspose_eq_rsvd
- NLAlib.IsBlockGolubKahan.range_blockPrefix_left
- NLAlib.IsBlockGolubKahan.range_blockPrefix_right
- NLAlib.exists_isBasisExtension
- NLAlib.exists_isBlockGolubKahan