Determinant of a complex matrix
|
LU decomposition has many applications, for example, the determinant calculation. If the complex square matrix A is represented as PA = LU, we can easily calculate the determinant of matrix A, since det L = 1, det P = +1 or det P = -1 (depending on the permutation), and the determinant of matrix U is equal to the product of its diagonal elements.
The subroutine CMatrixLU calculates the determinant of a complex matrix, whose LU decomposition has already been performed. The output of the subroutine CMatrixLU is given at the input: matrices L and U in compact form and the permutation matrix. The subroutine returns the determinant of the matrix. It is recommended to use this subroutine if you have already performed the LU decomposition and want to use it to calculate the matrix determinant.
The subroutine CMatrixDet calculates the determinant of a complex matrix whose LU decomposition hasn't been performed yet. The subroutine gets matrix A as an input, and returns the determinant. All operations regarding LU decomposition are hidden in the subroutine.
Report a bug
C#
C# 1.0 source.
cdet.csharp.zip - Determinant of a complex matrix
C++
C++ source.
cdet.cpp.zip - Determinant of a complex matrix
ablas.zip - optimized basic linear algebra subroutines with SSE2 support (for C++ sources only)
C++, multiple precision arithmetic
C++ source. MPFR/GMP is used.
GMP source is available from gmplib.org. MPFR source is available from www.mpfr.org.
cdet.mpfr.zip - Determinant of a complex matrix
mpfr.zip - precompiled Win32 MPFR/GMP binaries
Delphi
Delphi source.
Can be compiled under FPC (in Delphi compatibility mode).
cdet.delphi.zip - Determinant of a complex matrix
Visual Basic 6
Visual Basic 6 source.
cdet.vb6.zip - Determinant of a complex matrix
Zonnon beta
Zonnon source.
Zonnon is an experimental language developed at ETH Zurich.
See www.zonnon.ethz.ch for more information.
cdet.zonnon.zip - Determinant of a complex matrix
|