det.qr.Matrix(x, logarithm=T)
"qr.Matrix"
representing the QR decomposition of a square
Matrix.
"det"
.
The determinant is computed as the the determinant of the triangular factor
in the QR factorization.
The sign of the determinant is not given since it involves computing
the determinant of the orthogonal or unitary factor, which may be less
efficient than computing the determinant from
x
directly.
Golub, G., and Van Loan, C. F. (1989). Matrix Computations, 2nd edition, Johns Hopkins, Baltimore.
x <- Matrix( sample(-3:3, size = 9, replace = T), nrow = 3, ncol = 3) det(qr(x))