Contents
ALGORITHMS
Site map
Links
Site and author
News
About the site
FAQ
Contact
TERMS OF USE

Solution of the system with general complex matrix

One of the most commonly used applications of the LU decomposition is solving linear equations. It is so often applicable because while the LU decomposition of a system matrix costs O(N 3) operations, solving a system of linear equations with matrix A = LU costs only O(N 2). Therefore, it is possible to perform the LU decomposition of matrix A and then use it to solve systems of equations with different right sides for O(N 2) operations.

Note #1
Algorithm of a matrix condition number estimate can be used to estimate the matrix condition number and any solution errors found.

The module contains two subroutines. The CMatrixLUSolve subroutine solves a system whose LU decomposition has already been performed. The CMatrixSolve subroutine performs the LU decomposition and calls the first subroutine. Use the second subroutine to solve a system of linear equations once. To solve repeated systems with the same left sides, call the CMatrixLU and pass its output to the CMatrixLUSolve subroutine.

Report a bug

Source codes

C#

C# 1.0 source.
csolve.csharp.zip - Solution of the system with general complex matrix


C++

C++ source.
csolve.cpp.zip - Solution of the system with general 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.
csolve.mpfr.zip - Solution of the system with general complex matrix
mpfr.zip - precompiled Win32 MPFR/GMP binaries


Delphi

Delphi source.
Can be compiled under FPC (in Delphi compatibility mode).
csolve.delphi.zip - Solution of the system with general complex matrix


Visual Basic 6

Visual Basic 6 source.
csolve.vb6.zip - Solution of the system with general complex matrix


Zonnon beta

Zonnon source.
Zonnon is an experimental language developed at ETH Zurich.
See www.zonnon.ethz.ch for more information.
csolve.zonnon.zip - Solution of the system with general complex matrix



 
 
Sergey Bochkanov, Vladimir Bystritsky
Copyright © 1999-2008