10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-18 08:53:27 +02:00
QCaml/linear_algebra/lib/orthonormalization.mli
2020-09-26 12:02:53 +02:00

19 lines
441 B
OCaml

val canonical_ortho: ?thresh:float -> overlap:Matrix.t -> Matrix.t -> Matrix.t
(** Canonical orthogonalization. [overlap] is the overlap matrix {% $\mathbf{S}$ %},
and the last argument contains the vectors {% $\mathbf{C}$ %} to orthogonalize.
{%
$$
\mathbf{C_\bot} = \mathbf{C\, U\, D^{-1/2}}, \;
\mathbf{U\, D\, V^\dag} = \mathbf{S}
$$
%}
*)
val qr_ortho: Matrix.t -> Matrix.t
(** QR orthogonalization of the input matrix *)