math.numerics
Class LUPDecomposition

java.lang.Object
  extended by math.numerics.LUPDecomposition

public class LUPDecomposition
extends java.lang.Object

Lower Upper Permutation (LUP) decomposition See Object Oriented Implementation of Numerical Methods by Didier H. Besset.

Author:
Didier H. Besset

Constructor Summary
LUPDecomposition(double[][] components)
          Constructor method
 
Method Summary
 double determinant()
           
 double[][] inverseMatrixComponents()
          Calculates the inverse matrix components.
 double[] solve(double[] c)
           
static void symmetrizeComponents(double[][] components)
          Make sure the supplied matrix components are those of a symmetric matrix
 java.lang.String toString()
          Returns a String that represents the value of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LUPDecomposition

public LUPDecomposition(double[][] components)
                 throws java.lang.IllegalArgumentException
Constructor method

Parameters:
components - double[][]
Throws:
DhbMatrixAlgebra.DhbIllegalDimension - the supplied matrix is not square
java.lang.IllegalArgumentException
Method Detail

determinant

public double determinant()
Parameters:
c - double[]
Returns:
double[]

inverseMatrixComponents

public double[][] inverseMatrixComponents()
Calculates the inverse matrix components.

Parameters:
c - double[]
Returns:
double[]

solve

public double[] solve(double[] c)
Parameters:
c - double[]
Returns:
double[]

symmetrizeComponents

public static void symmetrizeComponents(double[][] components)
Make sure the supplied matrix components are those of a symmetric matrix

Parameters:
components - double

toString

public java.lang.String toString()
Returns a String that represents the value of this object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the receiver