jwo.utils
Class JWLUDecomp

java.lang.Object
  |
  +--jwo.utils.JWLUDecomp

public class JWLUDecomp
extends Object

Class for finding the solution of a set of linear algrbraic equations via LU decomposition. Adapted from the algorithm documented in Numerical Receipes in C (Press et al, 1988, pp.43-45).

Version:
1.8.0, 23rd March, 1998.
Author:
Jo Wood

Constructor Summary
JWLUDecomp(float[][] lhs, int n)
          Creates the LU Decomposed matrix based on LHS of equations.
 
Method Summary
 void luBackSub(float[] rhs)
          Performs forward and back substitution on an LU decomposed matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JWLUDecomp

public JWLUDecomp(float[][] lhs,
                  int n)
Creates the LU Decomposed matrix based on LHS of equations.

Parameters:
lhs - Matrix holding LHS of equations to solve.
n - Number of equations to solve.
Method Detail

luBackSub

public void luBackSub(float[] rhs)
Performs forward and back substitution on an LU decomposed matrix.

Parameters:
rhs - RHS of equations to be solved.