JakobCHR.com
 
Quick Navigation:
 
Personal:
 Go to Home
 MS Research
 PhD Research
 Curriculum Vitae

General:
 Linux

Soon to come:
 Matlab
 On-line Stores
 Cycling
 Medicine & Health
 LaTeX
 OOP & C++
 Sony PCM-R500 DAT


next up previous contents index
Next: Neutronics Implementation Up: Solution of block-tri-diagonal systems Previous: Solution of block-tri-diagonal systems   Contents   Index

Inverting matrices using simple Gaussian elimination

The task of finding the inverse matrix $\hspace{0.2ex}\underline{\underline{X}}{}\hspace{0.15ex}$ of the square Nth order matrix $\hspace{0.2ex}\underline{\underline{A}}{}\hspace{0.15ex}$ can be stated in the following way

\begin{displaymath}
\hspace{0.2ex}\underline{\underline{A}}{}\hspace{0.15ex} \h...
...ex} = \hspace{0.2ex}\underline{\underline{I}}{}\hspace{0.15ex}
\end{displaymath} (2.15)

where the matrix $\hspace{0.2ex}\underline{\underline{I}}{}\hspace{0.15ex}$ is the identity matrix of order N and we assume that $\hspace{0.2ex}\underline{\underline{A}}{}\hspace{0.15ex}$ has full rank. The matrix $\hspace{0.2ex}\underline{\underline{X}}{}\hspace{0.15ex}$ is most commonly found in a column wise manner since we may rewrite (2.22) in the way

\begin{displaymath}
\hspace{0.2ex}\underline{\underline{A}}{}\hspace{0.15ex} \h...
...rline{I}{}\hspace{0.15ex}_i, \hspace{1.5cm} i=\{1,2,\ldots,N\}
\end{displaymath} (2.16)

where $\hspace{0.2ex}\underline{X}{}\hspace{0.15ex}_i$ and $\hspace{0.2ex}\underline{I}{}\hspace{0.15ex}_i$ are the ith column of the matrices $\hspace{0.2ex}\underline{\underline{X}}{}\hspace{0.15ex}$ and $\hspace{0.2ex}\underline{\underline{I}}{}\hspace{0.15ex}$ respectively. We realize that we have to solve a Nth order system of equations N times with the same coefficient matrix and different right hand side vectors. This can be accomplished by simple Gaussian elimination, ie Gaussian elimination without pivoting. It is important to emphasize that simple Gaussian elimination does not take into account the limited machine accuracy when doing the calculations in practice. In unfavourable circumstances the solution can be totally destroyed by rounding errors. These examples are, however, very seldom met in practice and we assume simple Gaussian elimination to suffice for our purposes. For completeness we include the algorithm [9, p. 2.14] of simple Gaussian elimination below. In the algorithm A is the coefficient matrix and B the right hand side vector.


\begin{eqnarray*}
\parbox[t]{4.5cm}{1) Forward elimination:}\parbox[t]{15cm}{
...
...,i)}$ }\\
\parbox[t]{4.5cm}{}\parbox[t]{15cm}{ {\bf next} i }
\end{eqnarray*}


$\textstyle \parbox{1.50cm}{\begin{eqnarray}
\end{eqnarray}}$

This algorithm overwrites the right hand side vector, B, with the solution vector. When we wish to solve for different right hand side vectors we only need to perform the first part down to the comment statement { Manipulate right hand side} once.


next up previous contents index
Next: Neutronics Implementation Up: Solution of block-tri-diagonal systems Previous: Solution of block-tri-diagonal systems   Contents   Index  
 
 
 
Revision 2.0, Copyright © 1999-2004 Jakob Christensen
http://www.JakobCHR.com
E-Mail: webmaster@JakobCHR.com
Top Quality
Developed with

Danish
Brain Power
Linux Powered!