Skip to content

cholupdate

builtin · libnexusinterp/corefcn/chol-proprietary.cc

: 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 with R1' * R1 = A + x * x', or with op equal to "-" the downdated factor for A - 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.