cholrot.update¶
- cholrot.update(R, z, *, alpha=1, lower=False, method='hy', overwrite=False, check=True)¶
Return the rank-one modified Cholesky factor.
- Parameters:
R (ndarray) – Cholesky factor. If
lower=False(default),Ris upper triangular and representsA = R.T @ R. Iflower=True,Ris lower triangular and representsA = R @ R.T.z (ndarray) – Rank-one modification vector.
alpha (float) –
+1computes an update,A + z z.T.-1computes a downdate,A - z z.T.lower (bool) – Whether
Ris lower triangular.method (Literal['hy', 'hc', 'algorithm_a', 'a']) –
"hy"for the hyperbolic rotation form,"hc"for the Chambers variant, or"algorithm_a"for Algorithm A.overwrite (bool) – If true, inputs may be reused internally. The public return value is the modified factor;
zis never modified.check (bool) – Check that input is triangular.
- Returns:
The modified Cholesky factor
Dwith the same triangular orientation asR.- Return type:
numpy.ndarray