cagpjax.linalg.orthogonalize
Orthogonalization methods.
Classes:
-
OrthogonalizationMethod–Methods for orthogonalizing a matrix.
Functions:
-
orthogonalize–Orthogonalize the operator using the specified method.
OrthogonalizationMethod
Bases: Enum
Methods for orthogonalizing a matrix.
Attributes:
orthogonalize
orthogonalize(A: Float[Array, 'm n'] | LinearOperator, /, method: OrthogonalizationMethod = OrthogonalizationMethod.QR, n_reortho: int = 0) -> Float[Array, 'm n'] | cola.ops.LinearOperator
Orthogonalize the operator using the specified method.
The columns of the resulting matrix should span a (super-)space of the columns of the input matrix and be mutually orthogonal. For column-rank-deficient matrices, some methods (e.g. Gram-Schmidt variants) may include columns of norm 0.
Parameters:
-
(AFloat[Array, 'm n'] | LinearOperator) –The operator to orthogonalize.
-
(methodOrthogonalizationMethod, default:QR) –The method to use for orthogonalization.
-
(n_reorthoint, default:0) –The number of times to re-orthogonalize each column. Reorthogonalizing once is generally sufficient to improve orthogonality for Gram-Schmidt variants (see e.g. 10.1007/s00211-005-0615-4).
Returns:
-
Float[Array, 'm n'] | LinearOperator–The orthogonalized operator. If the input is a LinearOperator, then so is the output.