| cholupdate | R Documentation |
function cholupdate returns the upper triangular Cholesky factor of
\bold{A} + \bold{xx}^T, where \bold{R} is the original Cholesky
factor of \bold{A} = \bold{R}^T\bold{R}, with \bold{x} a column
vector of appropriate dimension.
cholupdate(r, x)
r |
a upper triangular matrix, the Cholesky factor of matrix a. |
x |
vector defining the rank one update. |
Golub, G.H., Van Loan, C.F. (2013). Matrix Computations, 4th Edition. John Hopkins University Press.
chol
a <- matrix(c(1,1,1,1,2,3,1,3,6), ncol = 3)
r <- chol(a)
x <- c(0,0,1)
b <- a + outer(x,x)
r1 <- cholupdate(r, x)
r1
all(r1 == chol(b)) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.