NLA-lib Explorer

NLAlib.pinv_replicateRow

Library · theorem

The pseudoinverse of a row: (\mathbf{a}^{\mathsf{T}})^{+} = \|\mathbf{a}\|^{-2}\,\overline{\mathbf{a}} for the one-row matrix \mathbf{a}^{\mathsf{T}} of a vector \mathbf{a}, and \mathbf{0} when \mathbf{a} = \mathbf{0} (where \|\mathbf{a}\|^{-2} = 0). A Kaczmarz step projects through it.

NLAlib.pinv_replicateRow.{u_1, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_4} [Fintype n]
  (a : n → 𝕜) : pinv (replicateRow Unit a) = (‖WithLp.toLp 2 a‖ ^ 2)⁻¹ • replicateCol Unit (star a)

Full source on GitHub

Import NLAlib.Matrix.Pseudoinverse.Pinv.