cholupdate
- :
R1 =cholupdate(R, x)¶ - :
R1 =cholupdate(R, x, op)¶ - :
[R1, err] =cholupdate(…)¶ Rank-one update of a Cholesky factor.
Given the upper triangular R with
R' * R = A, return R1 withR1' * R1 = A + x * x', or with op equal to"-"the downdated factor forA - x * x'.With a second output, err is 0 on success, 1 if a downdate would destroy positive definiteness and 2 if R is singular; otherwise those conditions raise an error.