### Name: CHMfactor-class ### Title: CHOLMOD-based Cholesky Factorizations ### Aliases: CHMfactor-class CHMsimpl-class CHMsuper-class dCHMsimpl-class ### nCHMsimpl-class dCHMsuper-class nCHMsuper-class ### coerce,CHMfactor,Matrix-method coerce,CHMfactor,sparseMatrix-method ### coerce,CHMfactor,pMatrix-method expand,CHMfactor-method ### solve,CHMfactor,ddenseMatrix-method ### solve,CHMfactor,dsparseMatrix-method solve,CHMfactor,numeric-method ### solve,CHMfactor,matrix-method solve,CHMfactor,ANY-method ### determinant,CHMfactor,missing-method ### determinant,CHMfactor,logical-method update,CHMfactor-method ### Keywords: classes algebra ### ** Examples ## An example for the expand() method n <- 1000; m <- 200; nnz <- 2000 set.seed(1) M1 <- spMatrix(n, m, i = sample(n, nnz, replace = TRUE), j = sample(m, nnz, replace = TRUE), x = round(rnorm(nnz),1)) XX <- crossprod(M1) CX <- Cholesky(XX) str(CX) ## a "dCHMsimpl" object r <- expand(CX <- Cholesky(XX)) L.P <- with(r, crossprod(L,P)) ## == L'P PLLP <- crossprod(L.P) ## == (L'P)' L'P == P'LL'P stopifnot( all.equal(PLLP, XX) )