Computes the determinant (or its logarithm) of a Matrix.
USAGE:
det.Matrix(x, logarithm=T, tune)
REQUIRED ARGUMENTS:
x:
a numeric or complex square Matrix inheriting from class "Matrix".
OPTIONAL ARGUMENTS:
logarithm:
a logical variable indicating whether or not the logarithm of the modulus of
the determinant should be returned rather than the determinant itself.
The default is to return the logarithm.
tune:
a integer vector or list of named tuning parameters that may affect
computational efficiency. The relevant parameter is the blocksize parameters
NB as described in .laenv.
VALUE:
returns an object of class "det".
DETAILS:
The determinant is computed from an LU factorization obtained via the
function dgetrf or zgetrf from LAPACK (Anderson et al. 1994).
REFERENCES:
Anderson, E., et al. (1994).
LAPACK User's Guide,
2nd edition, SIAM, Philadelphia.
Golub, G., and Van Loan, C. F. (1989).
Matrix Computations,
2nd edition, Johns Hopkins, Baltimore.