|
LU decomposition has many applications, including the inversion of complex matrices.
If we know the LU decomposition of a square complex matrix, we can use algorithm of triangular complex matrix inversion to invert matrix U and get a system of linear equations in A -1 which can easily be solved from the system matrix properties.
One of the advantages of this algorithm over the Gauss method is that if we have performed the LU decomposition of matrix A (for example, to calculate the determinant or to solve a system of linear equations), we can use the results to invert the matrix.
The algorithm includes two subroutines. The first, CMatrixLUInverse, calculates the inverse matrix by using the result of subroutine CMatrixLU. The second, CMatrixInverse, performs the LU decomposition by itself.
Both subroutines return False if the matrix is singular (in this case at least one of the diagonal elements of matrix U equals 0), in that case, the matrix inversion cannot be performed. If the matrix is not singular and the inversion could be performed, the subroutines return True. In that case, the matrix could be ill-conditioned, but the subroutines don't estimate the matrix condition number.
This algorithm is transferred from the LAPACK library.
Report a bug
C#
C# 1.0 source.
cinverse.csharp.zip - Complex matrix inverse
C++
C++ source.
cinverse.cpp.zip - Complex matrix inverse
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.
cinverse.mpfr.zip - Complex matrix inverse
mpfr.zip - precompiled Win32 MPFR/GMP binaries
Delphi
Delphi source.
Can be compiled under FPC (in Delphi compatibility mode).
cinverse.delphi.zip - Complex matrix inverse
Visual Basic 6
Visual Basic 6 source.
cinverse.vb6.zip - Complex matrix inverse
Zonnon beta
Zonnon source.
Zonnon is an experimental language developed at ETH Zurich.
See www.zonnon.ethz.ch for more information.
cinverse.zonnon.zip - Complex matrix inverse
|