NLA-lib Explorer

NLAlib.FloatMachine.hermAvg

Library · def

The scaled Hermitian part, (\mathbf{X} + \mathbf{X}^{\mathsf{H}})/c stored Hermitian: on the upper triangle the parts of \mathbf{X}_{i,j} + \overline{\mathbf{X}_{j,i}} are computed, rounded, then divided by c and rounded; on the diagonal 2\operatorname{Re}\mathbf{X}_{i,i}/c likewise.

NLAlib.FloatMachine.hermAvg.{u_1, u_2, u_3} {F : Type u_1} {Su : Type u_2} {Sg : Type u_3}
  (M : FloatMachine F Su Sg) {k : ℕ} (X : Matrix (Fin k) (Fin k) (F × F)) (c : F) :
  Matrix (Fin k) (Fin k) (F × F)

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.EntrywiseRounding.