nekStab / LightKrylov

Lightweight implementation of Krylov subspace techniques in Fortran.
BSD 3-Clause "New" or "Revised" License
18 stars 0 forks source link

Add tools for `LightROM` #86

Closed Simkern closed 4 months ago

Simkern commented 4 months ago

Addition of two subroutines that belong in LightKrylov that, as of this writing, are only used within LightKrylov:

  1. zero_basis: helper function to zero out a Krylov basis. This could be used in the initialisation in examples/tests as well.
  2. sqrtm: matrix-valued function for the sqrt of a SPD matrix. In the present implementation it is included only for real matrices (rsp + rdp) and includes checks for symmetry and positive definiteness. In principle, it could be extended to complex matrices with appropriate changes to the checks, but as of now it seems superfluous.

Note: The sval function referenced in the issue is not added. It is kept in LightROM.

Closes #84