Description | The determinant of MA is calculated. For large matrices, this is done via LU decomposition. For small matrices, individual formulae are applied. For the special case of symmetric matrices, MFsym_det provides a roughly two times faster way.
MF_det needs buffer memory. The "normal" versions (prefixes MF_, MCF_ etc.) allocate it themselves, whereas the version with the prefixes MFb_, MCFb_ etc. take a vector Buf as an additional argument. The required size of Buf can be obtained by calling MFb_det_sizeBuf() etc., whereby the size is given as the number of elements of Buf in the respective data type (rather than in bytes).
As noted above, the determinant of a symmetric matrix can potentially be obtained faster by MFsym_det. The syntax is the same as for MF_det. Internally, this function first attempts Cholesky decomposition. Only if that fails (i.e. the input matrix is not positive-definite), the way via LUD is used.
|