Solves X %*% x = B where X is the symmetric
positive-definite matrix whose Cholesky factorization is stored in
factor. Dispatches to a GPU backend when the factor was
computed in "fast" precision and a device-resident factor
is available.
Arguments
- factor
An
amCholobject fromchol_factor.- B
Numeric vector or matrix; the right-hand side. The number of rows must equal the dimension of the factor.
Examples
m <- crossprod(matrix(rnorm(16), 4, 4)) + diag(4)
A <- adgeMatrix(m)
fac <- chol_factor(A)
b <- rnorm(4)
x <- chol_solve(fac, b)