org.ejml.alg.dense.decomposition.bidiagonal
Class BidiagonalDecompositionNaive

java.lang.Object
  extended by org.ejml.alg.dense.decomposition.bidiagonal.BidiagonalDecompositionNaive

public class BidiagonalDecompositionNaive
extends Object

A slower but much simpler version of BidiagonalDecompositionRow that internally uses SimpleMatrix and explicitly computes the householder matrices. This was easier to code up and is used to validate other implementations.

Author:
Peter Abeles

Constructor Summary
BidiagonalDecompositionNaive()
           
 
Method Summary
protected  void computeU(int k)
           
protected  void computeV(int k)
           
 boolean decompose(DenseMatrix64F A)
          Computes the decomposition of the provided matrix.
 SimpleMatrix getB()
           
 SimpleMatrix getU()
           
 SimpleMatrix getV()
           
protected  void init(DenseMatrix64F A)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BidiagonalDecompositionNaive

public BidiagonalDecompositionNaive()
Method Detail

getU

public SimpleMatrix getU()

getB

public SimpleMatrix getB()

getV

public SimpleMatrix getV()

decompose

public boolean decompose(DenseMatrix64F A)
Computes the decomposition of the provided matrix. If no errors are detected then true is returned, false otherwise.

Parameters:
A - The matrix that is being decomposed. Not modified.
Returns:
If it detects any errors or not.

init

protected void init(DenseMatrix64F A)

computeU

protected void computeU(int k)

computeV

protected void computeV(int k)


Copyright © 2012. All Rights Reserved.