|
Contents | Previous | Next | Subchapters |
| Syntax |
[s, d] = logdet(A) |
| See Also | det , qred , cond |
s
is set to the sign of the determinant as a scalar with the same
type as A.
If the determinant is zero, s is zero,
otherwise the absolute value of s is equal to one and
the determinant of A is equal to
s * exp(d).
d
is set to the log of the absolute value of the determinant
as a scalar with the same type as A.
(If s is zero, the value of d is not defined.)
x = {[1, 0], [0, 2]}
[s, d] = logdet(real(x))
print s * exp(d)
returns
2