facmul.lu.Hermitian(x, factor, y, transpose = F, left = T)
x <- Matrix( rnorm(81), nrow = 9, ncol = 9) x[row(x) > col(x)] <- t(x)[row(x) > col(x)] # form symmetric matrix class(x) <- Matrix.class(x) z <- lu(x) # symmetric-indefinite factorization of x prod1 <- facmul(z,"T",facmul(z,"B", facmul(z,"T",transpose = T))) prod2 <- facmul(z,"P",facmul(z,"P",x,transpose = T,left=F)) max(abs(prod1 - prod2)) # test product T B t(T) == P x t(P)