determinant calculate the determinant of a
symmetric, positive definite sparse matrix.
separately the modulus of the determinant, optionally on the logarithm scale,
and the sign of the determinant.
det(x, ...) determinant(x, logarithm = TRUE, ...)
sparse matrix of class
spam or a Cholesky factor of
TRUE (default) return the logarithm of the
modulus of the determinant.
Optional arguments. Examples include
and additional parameters used by the method.
det, the determinant of
list with components
a numeric value. The modulus (absolute value) of the
FALSE; otherwise the
logarithm of the modulus.
+1, as only symmetric positive definite matrices are considered.
If the matrix is not positive definite, the function issues a
warning and returns
The determinant is based on the product of the diagonal entries of a
Cholesky factor, i.e. internally, a Cholesky decomposition is
performed. By default, the NgPeyton algorithm with minimal degree
ordering us used. To change the methods or supply additonal parameters
to the Cholesky factorization function, it is possible to pass via
The determinant of a Cholesky factor is also defined.
Ng, E. G. and B. W. Peyton (1993) Block sparse Cholesky algorithms on advanced uniprocessor computers, SIAM J. Sci. Comput., 14, 1034--1056.