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

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

public class LUDecompositionAlt
extends LUDecompositionBase

An LU decomposition algorithm that originally came from Jama. In general this is faster than what is in NR since it creates a cache of a column, which makes a big difference in larger matrices.

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
LUDecompositionAlt()
           
 
Method Summary
 boolean decompose(DenseMatrix64F a)
          This is a modified version of what was found in the JAMA package.
 
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

LUDecompositionAlt

public LUDecompositionAlt()
Method Detail

decompose

public boolean decompose(DenseMatrix64F a)
This is a modified version of what was found in the JAMA package. The order that it performs its permutations in is the primary difference from NR

Parameters:
a - The matrix that is to be decomposed. Not modified.
Returns:
true If the matrix can be decomposed and false if it can not.


Copyright © 2012. All Rights Reserved.