org.apache.commons.math3.linear
Class EigenDecompositionTest

java.lang.Object
  extended by org.apache.commons.math3.linear.EigenDecompositionTest

public class EigenDecompositionTest
extends Object


Constructor Summary
EigenDecompositionTest()
           
 
Method Summary
protected  void checkEigenValues(double[] targetValues, EigenDecomposition ed, double tolerance)
          Verifies that the given EigenDecomposition has eigenvalues equivalent to the targetValues, ignoring the order of the values and allowing values to differ by tolerance.
protected  void checkEigenVector(double[] eigenVector, EigenDecomposition ed, double tolerance)
          Returns true iff eigenVector is a scalar multiple of one of the columns of ed.getV().
static RealMatrix createOrthogonalMatrix(Random r, int size)
           
 void setUp()
           
 void tearDown()
           
 void testAEqualVDVt()
          test A = VDVt
 void testBigMatrix()
          test eigenvalues for a big matrix.
 void testDiagonal()
          test diagonal matrix
 void testDimension1()
           
 void testDimension2()
           
 void testDimension3()
           
 void testDimension3MultipleRoot()
           
 void testDimension4WithoutSplit()
           
 void testDimension4WithSplit()
           
 void testDimensions()
          test dimensions
 void testDistinctEigenvalues()
          Matrix with eigenvalues {2, 0, 12}
 void testEigenvalues()
          test eigenvalues
 void testEigenvectors()
          test eigenvectors
 void testMath308()
           
 void testMath848()
           
 void testMathpbx02()
           
 void testMathpbx03()
           
 void testNormalDistributionUnsymmetricMatrix()
           
 void testRandomUnsymmetricMatrix()
           
 void testRepeatedEigenvalue()
          Matrix with eigenvalues {8, -1, -1}
 void testSquareRoot()
           
 void testSquareRootNonPositiveDefinite()
           
 void testSquareRootNonSymmetric()
           
 void testSymmetric()
           
 void testTridiagonal()
          test a matrix already in tridiagonal form.
 void testUnsymmetric()
           
 void testVOrthogonal()
          test that V is orthogonal
 void testZeroDivide()
          Verifies operation on indefinite matrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EigenDecompositionTest

public EigenDecompositionTest()
Method Detail

testDimension1

public void testDimension1()

testDimension2

public void testDimension2()

testDimension3

public void testDimension3()

testDimension3MultipleRoot

public void testDimension3MultipleRoot()

testDimension4WithSplit

public void testDimension4WithSplit()

testDimension4WithoutSplit

public void testDimension4WithoutSplit()

testMath308

public void testMath308()

testMathpbx02

public void testMathpbx02()

testMathpbx03

public void testMathpbx03()

testTridiagonal

public void testTridiagonal()
test a matrix already in tridiagonal form.


testDimensions

public void testDimensions()
test dimensions


testEigenvalues

public void testEigenvalues()
test eigenvalues


testBigMatrix

public void testBigMatrix()
test eigenvalues for a big matrix.


testSymmetric

public void testSymmetric()

testSquareRoot

public void testSquareRoot()

testSquareRootNonSymmetric

public void testSquareRootNonSymmetric()

testSquareRootNonPositiveDefinite

public void testSquareRootNonPositiveDefinite()

testUnsymmetric

public void testUnsymmetric()

testRandomUnsymmetricMatrix

public void testRandomUnsymmetricMatrix()

testNormalDistributionUnsymmetricMatrix

public void testNormalDistributionUnsymmetricMatrix()

testMath848

public void testMath848()

testEigenvectors

public void testEigenvectors()
test eigenvectors


testAEqualVDVt

public void testAEqualVDVt()
test A = VDVt


testVOrthogonal

public void testVOrthogonal()
test that V is orthogonal


testDiagonal

public void testDiagonal()
test diagonal matrix


testRepeatedEigenvalue

public void testRepeatedEigenvalue()
Matrix with eigenvalues {8, -1, -1}


testDistinctEigenvalues

public void testDistinctEigenvalues()
Matrix with eigenvalues {2, 0, 12}


testZeroDivide

public void testZeroDivide()
Verifies operation on indefinite matrix


checkEigenValues

protected void checkEigenValues(double[] targetValues,
                                EigenDecomposition ed,
                                double tolerance)
Verifies that the given EigenDecomposition has eigenvalues equivalent to the targetValues, ignoring the order of the values and allowing values to differ by tolerance.


checkEigenVector

protected void checkEigenVector(double[] eigenVector,
                                EigenDecomposition ed,
                                double tolerance)
Returns true iff eigenVector is a scalar multiple of one of the columns of ed.getV(). Does not try linear combinations - i.e., should only be used to find vectors in one-dimensional eigenspaces.


setUp

public void setUp()

tearDown

public void tearDown()

createOrthogonalMatrix

public static RealMatrix createOrthogonalMatrix(Random r,
                                                int size)


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.