| Line 3... |
Line 3... |
| 3 |
\alias{det}
|
3 |
\alias{det}
|
| 4 |
\alias{determinant}
|
4 |
\alias{determinant}
|
| 5 |
\alias{determinant.matrix}
|
5 |
\alias{determinant.matrix}
|
| 6 |
\usage{
|
6 |
\usage{
|
| 7 |
det(x, \dots)
|
7 |
det(x, \dots)
|
| 8 |
determinant(x, logarithm, \dots)
|
8 |
determinant(x, logarithm = TRUE, \dots)
|
| 9 |
}
|
9 |
}
|
| 10 |
\description{
|
10 |
\description{
|
| 11 |
\code{det} calculates the determinant of a matrix. \code{determinant}
|
11 |
\code{det} calculates the determinant of a matrix. \code{determinant}
|
| 12 |
is a generic function that returns separately the modulus of the determinant,
|
12 |
is a generic function that returns separately the modulus of the determinant,
|
| 13 |
optionally on the logarithm scale, and the sign of the determinant.
|
13 |
optionally on the logarithm scale, and the sign of the determinant.
|
| 14 |
}
|
14 |
}
|
| 15 |
\arguments{
|
15 |
\arguments{
|
| 16 |
\item{x}{numeric matrix.}
|
16 |
\item{x}{numeric matrix.}
|
| 17 |
\item{logarithm}{logical; if \code{TRUE} return the logarithm of the
|
17 |
\item{logarithm}{logical; if \code{TRUE} (default) return the
|
| 18 |
modulus of the determinant. Default is \code{TRUE}.}
|
18 |
logarithm of the modulus of the determinant.}
|
| 19 |
\item{\dots}{Optional arguments. At present none are used. Previous
|
19 |
\item{\dots}{Optional arguments. At present none are used. Previous
|
| 20 |
versions of \code{det} allowed an optional \code{method} argument.
|
20 |
versions of \code{det} allowed an optional \code{method} argument.
|
| 21 |
This argument will be ignored but will not produce an error.}
|
21 |
This argument will be ignored but will not produce an error.}
|
| 22 |
}
|
22 |
}
|
| 23 |
\value{
|
23 |
\value{
|
| 24 |
For \code{det}, the determinant of \code{x}. For \code{determinant}, a
|
24 |
For \code{det}, the determinant of \code{x}. For \code{determinant}, a
|
| 25 |
list with components
|
25 |
list with components
|
| 26 |
\item{modulus}{a numeric value. The modulus (absolute value) of the
|
26 |
\item{modulus}{a numeric value. The modulus (absolute value) of the
|
| 27 |
determinant if \code{logarithm} is \code{FALSE}; otherwise the
|
27 |
determinant if \code{logarithm} is \code{FALSE}; otherwise the
|
| 28 |
logarithm of the modulus.}
|
28 |
logarithm of the modulus.}
|
| 29 |
\item{sign}{integer; either \eqn{+1} or \eqn{-1} according to whether
|
29 |
\item{sign}{integer; either \eqn{+1} or \eqn{-1} according to whether
|
| 30 |
the determinant is positive or negative.}
|
30 |
the determinant is positive or negative.}
|
| 31 |
}
|
31 |
}
|