Contents | Previous | Next | Subchapters |

Syntax |
`[` s`, ` d`] = logdet(` A`)` |

See Also | det , qred , cond |

Computes the log of the determinant of the matrix

is set to the sign of the determinant as a scalar with the same
type as *s* * *exp*(*d*)

.

is set to the log of the absolute value of the determinant
as a scalar with the same type as ```
```

x = {[1, 0], [0, 2]}

[s, d] = logdet(real(x))

print s * exp(d)

returns
```
```

2

This function uses an LU factorization of

It is possible that the determinant can be a number outside the limits corresponding to the type of