org.ejml.alg.dense.decomposition
Class BaseDecompositionBlock64

java.lang.Object
  extended by org.ejml.alg.dense.decomposition.BaseDecompositionBlock64
All Implemented Interfaces:
DecompositionInterface<DenseMatrix64F>
Direct Known Subclasses:
CholeskyDecompositionBlock64, QRDecompositionBlock64, TridiagonalDecompositionBlock

public class BaseDecompositionBlock64
extends Object
implements DecompositionInterface<DenseMatrix64F>

Generic interface for wrapping a BlockMatrix64F decomposition for processing of DenseMatrix64F.

Author:
Peter Abeles

Field Summary
protected  BlockMatrix64F Ablock
           
protected  DecompositionInterface<BlockMatrix64F> alg
           
protected  int blockLength
           
protected  double[] tmp
           
 
Constructor Summary
BaseDecompositionBlock64(DecompositionInterface<BlockMatrix64F> alg, int blockLength)
           
 
Method Summary
 void convertBlockToRow(int numRows, int numCols, int blockLength, double[] data)
           
 boolean decompose(DenseMatrix64F A)
          Computes the decomposition of the input matrix.
 boolean inputModified()
          Is the input matrix to DecompositionInterface.decompose(org.ejml.data.Matrix64F) is modified during the decomposition process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

alg

protected DecompositionInterface<BlockMatrix64F> alg

tmp

protected double[] tmp

Ablock

protected BlockMatrix64F Ablock

blockLength

protected int blockLength
Constructor Detail

BaseDecompositionBlock64

public BaseDecompositionBlock64(DecompositionInterface<BlockMatrix64F> alg,
                                int blockLength)
Method Detail

decompose

public boolean decompose(DenseMatrix64F A)
Description copied from interface: DecompositionInterface
Computes the decomposition of the input matrix. Depending on the implementation the input matrix might be stored internally or modified. If it is modified then the function DecompositionInterface.inputModified() will return true and the matrix should not be modified until the decomposition is no longer needed.

Specified by:
decompose in interface DecompositionInterface<DenseMatrix64F>
Parameters:
A - The matrix which is being decomposed. Modification is implementation dependent.
Returns:
Returns if it was able to decompose the matrix.

convertBlockToRow

public void convertBlockToRow(int numRows,
                              int numCols,
                              int blockLength,
                              double[] data)

inputModified

public boolean inputModified()
Description copied from interface: DecompositionInterface
Is the input matrix to DecompositionInterface.decompose(org.ejml.data.Matrix64F) is modified during the decomposition process.

Specified by:
inputModified in interface DecompositionInterface<DenseMatrix64F>
Returns:
true if the input matrix to decompose() is modified.


Copyright © 2012. All Rights Reserved.