mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-11-13 17:43:41 +01:00
19 lines
441 B
OCaml
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 *)
|
||
|
|
||
|
|