Determinant of a Matrix from Singular-Value Decomposition

DESCRIPTION:

Computes the modulus of the determinant (or its logarithm) of a square Matrix from its singular-value decomposition. .LB Matrix

USAGE:

det.svd.Matrix(x, logarithm=T) 

REQUIRED ARGUMENTS:

x
an object of class "svd.Matrix" representing the singular-value decomposition of a square 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.

VALUE:

returns an object of class "det" .

DETAILS:

The sign of the determinant is returned as NA since it cannot be efficiently computed from the singular value decomposition.

REFERENCES:

Golub, G., and Van Loan, C. F. (1989). Matrix Computations, 2nd edition, Johns Hopkins, Baltimore.

SEE ALSO:

, .

EXAMPLES:

x <- Matrix( sample(-3:3, size = 9, replace = T), nrow = 3, ncol = 3) 
det(svd(x))