FUNCTION REFERENCE
cholupdate
Rank-1 update of a Cholesky factorization.
Rank-1 update of a Cholesky factorization.
Syntax
R1 = cholupdate(R, x)Syntax
R1 = cholupdate(R, x, '+')Syntax
[R1, p] = cholupdate(R, x, '-')R1'*R1 = R'*R + x*x' ('+', default) or R'*R - x*x' ('-'). With two outputs a failed downdate returns p > 0 instead of an error.
Example
cholupdate(chol([4 2; 2 3]), [1; 0]) % [2.2361 0.8944; 0 1.4832]Differences from MATLAB: Some results differ in the last printed digit.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.