org.ejml.alg.dense.decomposition.lu
Class LUDecompositionNR

java.lang.Object
  extended by org.ejml.alg.dense.decomposition.lu.LUDecompositionBase
      extended by org.ejml.alg.dense.decomposition.lu.LUDecompositionNR
All Implemented Interfaces:
DecompositionInterface<DenseMatrix64F>, LUDecomposition<DenseMatrix64F>

public class LUDecompositionNR
extends LUDecompositionBase

This code is inspired from what's in numerical recipes.

Author:
Peter Abeles

Field Summary
 
Fields inherited from class org.ejml.alg.dense.decomposition.lu.LUDecompositionBase
dataLU, indx, LU, m, maxWidth, n, pivot, pivsign, vv
 
Constructor Summary
LUDecompositionNR()
           
 
Method Summary
 boolean decompose(DenseMatrix64F orig)
           This implementation of LU Decomposition uses the algorithm specified below: "Numerical Recipes The Art of Scientific Computing", Third Edition, Pages 48-55
 
Methods inherited from class org.ejml.alg.dense.decomposition.lu.LUDecompositionBase
_getVV, _solveVectorInternal, computeDeterminant, decomposeCommonInit, getIndx, getLower, getLU, getPivot, getPivot, getUpper, inputModified, isSingular, quality, setExpectedMaxSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LUDecompositionNR

public LUDecompositionNR()
Method Detail

decompose

public boolean decompose(DenseMatrix64F orig)

This implementation of LU Decomposition uses the algorithm specified below: "Numerical Recipes The Art of Scientific Computing", Third Edition, Pages 48-55

Parameters:
orig - The matrix that is to be decomposed. Not modified.
Returns:
true If the matrix can be decomposed and false if it can not. It can return true and still be singular.


Copyright © 2012. All Rights Reserved.