NLAlib.det_diagonal_add_vecMulVec
Library · theorem
The determinant of a diagonal matrix plus a rank-one matrix, with no invertibility assumption: \det\bigl(\operatorname{diag}(\mathbf{d}) + \mathbf{u}\mathbf{v}^{\mathsf{T}}\bigr) = \prod_i \mathbf{d}_i + \sum_i \mathbf{u}_i \mathbf{v}_i \prod_{j \ne i} \mathbf{d}_j.
NLAlib.det_diagonal_add_vecMulVec.{u_2, u_3} {n : Type u_2} [Fintype n] [DecidableEq n]
{R : Type u_3} [CommRing R] (d u v : n → R) :
(diagonal d + vecMulVec u v).det = ∏ i, d i + ∑ i, u i * v i * ∏ j ∈ Finset.univ.erase i, d jImport NLAlib.Matrix.Spectral.RankOneUpdate.