org.apache.commons.math.linear
Class BigMatrixImplTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.math.linear.BigMatrixImplTest
All Implemented Interfaces:
junit.framework.Test

Deprecated.

@Deprecated
public final class BigMatrixImplTest
extends junit.framework.TestCase

Test cases for the BigMatrixImpl class.

Version:
$Revision: 790372 $ $Date: 2009-07-01 16:48:19 -0400 (Wed, 01 Jul 2009) $

Field Summary
protected  double[][] bigSingular
          Deprecated.  
protected  double[][] detData
          Deprecated.  
protected  double[][] detData2
          Deprecated.  
protected  double entryTolerance
          Deprecated.  
protected  double[][] id
          Deprecated.  
protected  double[][] luData
          Deprecated.  
protected  double[][] luDataLUDecomposition
          Deprecated.  
protected  double normTolerance
          Deprecated.  
protected  double[] preMultTest
          Deprecated.  
protected  double[][] singular
          Deprecated.  
protected  double[][] subColumn1
          Deprecated.  
protected  double[][] subColumn3
          Deprecated.  
protected  double[][] subRow0
          Deprecated.  
protected  double[][] subRow3
          Deprecated.  
protected  double[][] subRows00Cols33
          Deprecated.  
protected  double[][] subRows01Cols23
          Deprecated.  
protected  double[][] subRows02Cols13
          Deprecated.  
protected  double[][] subRows03Cols12
          Deprecated.  
protected  double[][] subRows03Cols123
          Deprecated.  
protected  double[][] subRows20Cols123
          Deprecated.  
protected  double[][] subRows23Cols00
          Deprecated.  
protected  double[][] subRows31Cols31
          Deprecated.  
protected  double[][] subTestData
          Deprecated.  
protected  double[][] testData
          Deprecated.  
protected  double[][] testData2
          Deprecated.  
protected  double[][] testData2T
          Deprecated.  
protected  double[] testDataCol3
          Deprecated.  
protected  double[][] testDataInv
          Deprecated.  
protected  double[][] testDataLU
          Deprecated.  
protected  double[][] testDataMinus
          Deprecated.  
protected  double[][] testDataPlus2
          Deprecated.  
protected  double[][] testDataPlusInv
          Deprecated.  
protected  double[] testDataRow1
          Deprecated.  
protected  String[][] testDataString
          Deprecated.  
protected  double[] testVector
          Deprecated.  
protected  double[] testVector2
          Deprecated.  
 
Constructor Summary
BigMatrixImplTest(String name)
          Deprecated.  
 
Method Summary
static BigDecimal[] asBigDecimal(double[] data)
          Deprecated.  
static BigDecimal[][] asBigDecimal(double[][] data)
          Deprecated.  
static double[] asDouble(BigDecimal[] data)
          Deprecated.  
static double[][] asDouble(BigDecimal[][] data)
          Deprecated.  
protected  void assertClose(String msg, org.apache.commons.math.linear.BigMatrix m, org.apache.commons.math.linear.BigMatrix n, double tolerance)
          Deprecated. verifies that two matrices are close (1-norm)
protected  void assertClose(String msg, double[] m, double[] n, double tolerance)
          Deprecated. verifies that two vectors are close (sup norm)
protected  org.apache.commons.math.linear.BigMatrix permuteRows(org.apache.commons.math.linear.BigMatrix matrix, int[] permutation)
          Deprecated. Returns the result of applying the given row permutation to the matrix
protected  void splitLU(org.apache.commons.math.linear.BigMatrix lu, BigDecimal[][] lowerData, BigDecimal[][] upperData)
          Deprecated. extracts the l and u matrices from compact lu representation
static junit.framework.Test suite()
          Deprecated.  
 void testAdd()
          Deprecated. test add
 void testAddFail()
          Deprecated. test add failure
 void testConstructors()
          Deprecated. test constructors
 void testCopyFunctions()
          Deprecated. test copy functions
 void testDeterminant()
          Deprecated. test determinant
 void testDimensions()
          Deprecated. test dimensions
 void testEqualsAndHashCode()
          Deprecated.  
 void testGetColumnMatrix()
          Deprecated.  
 void testGetRowMatrix()
          Deprecated.  
 void testGetVectors()
          Deprecated.  
 void testInverse()
          Deprecated. test inverse
 void testIsSingular()
          Deprecated. test isSingular
 void testLUDecomposition()
          Deprecated.  
 void testMath209()
          Deprecated. test issue MATH-209
 void testMultiply()
          Deprecated. test multiply
 void testMultiply2()
          Deprecated.  
 void testNorm()
          Deprecated. test norm
 void testOperate()
          Deprecated. test operate
 void testPlusMinus()
          Deprecated. test m-n = m + -n
 void testPremultiply()
          Deprecated.  
 void testPremultiplyVector()
          Deprecated. test preMultiply by vector
 void testScalarAdd()
          Deprecated. test sclarAdd
 void testSetSubMatrix()
          Deprecated.  
 void testSolve()
          Deprecated. test solve
 void testSubMatrix()
          Deprecated. test submatrix accessors
 void testToString()
          Deprecated.  
 void testTrace()
          Deprecated. test trace
 void testTranspose()
          Deprecated. test transpose
protected  void verifyDecomposition(org.apache.commons.math.linear.BigMatrix matrix, org.apache.commons.math.linear.BigMatrix lu)
          Deprecated. Extracts l and u matrices from lu and verifies that matrix = l times u modulo permutation
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

testDataString

protected String[][] testDataString
Deprecated. 

id

protected double[][] id
Deprecated. 

testData

protected double[][] testData
Deprecated. 

testDataLU

protected double[][] testDataLU
Deprecated. 

testDataPlus2

protected double[][] testDataPlus2
Deprecated. 

testDataMinus

protected double[][] testDataMinus
Deprecated. 

testDataRow1

protected double[] testDataRow1
Deprecated. 

testDataCol3

protected double[] testDataCol3
Deprecated. 

testDataInv

protected double[][] testDataInv
Deprecated. 

preMultTest

protected double[] preMultTest
Deprecated. 

testData2

protected double[][] testData2
Deprecated. 

testData2T

protected double[][] testData2T
Deprecated. 

testDataPlusInv

protected double[][] testDataPlusInv
Deprecated. 

luData

protected double[][] luData
Deprecated. 

luDataLUDecomposition

protected double[][] luDataLUDecomposition
Deprecated. 

singular

protected double[][] singular
Deprecated. 

bigSingular

protected double[][] bigSingular
Deprecated. 

detData

protected double[][] detData
Deprecated. 

detData2

protected double[][] detData2
Deprecated. 

testVector

protected double[] testVector
Deprecated. 

testVector2

protected double[] testVector2
Deprecated. 

subTestData

protected double[][] subTestData
Deprecated. 

subRows02Cols13

protected double[][] subRows02Cols13
Deprecated. 

subRows03Cols12

protected double[][] subRows03Cols12
Deprecated. 

subRows03Cols123

protected double[][] subRows03Cols123
Deprecated. 

subRows20Cols123

protected double[][] subRows20Cols123
Deprecated. 

subRows31Cols31

protected double[][] subRows31Cols31
Deprecated. 

subRows01Cols23

protected double[][] subRows01Cols23
Deprecated. 

subRows23Cols00

protected double[][] subRows23Cols00
Deprecated. 

subRows00Cols33

protected double[][] subRows00Cols33
Deprecated. 

subRow0

protected double[][] subRow0
Deprecated. 

subRow3

protected double[][] subRow3
Deprecated. 

subColumn1

protected double[][] subColumn1
Deprecated. 

subColumn3

protected double[][] subColumn3
Deprecated. 

entryTolerance

protected double entryTolerance
Deprecated. 

normTolerance

protected double normTolerance
Deprecated. 
Constructor Detail

BigMatrixImplTest

public BigMatrixImplTest(String name)
Deprecated. 
Method Detail

suite

public static junit.framework.Test suite()
Deprecated. 

asDouble

public static final double[] asDouble(BigDecimal[] data)
Deprecated. 

asDouble

public static final double[][] asDouble(BigDecimal[][] data)
Deprecated. 

asBigDecimal

public static final BigDecimal[] asBigDecimal(double[] data)
Deprecated. 

asBigDecimal

public static final BigDecimal[][] asBigDecimal(double[][] data)
Deprecated. 

testDimensions

public void testDimensions()
Deprecated. 
test dimensions


testCopyFunctions

public void testCopyFunctions()
Deprecated. 
test copy functions


testConstructors

public void testConstructors()
Deprecated. 
test constructors


testAdd

public void testAdd()
Deprecated. 
test add


testAddFail

public void testAddFail()
Deprecated. 
test add failure


testNorm

public void testNorm()
Deprecated. 
test norm


testPlusMinus

public void testPlusMinus()
Deprecated. 
test m-n = m + -n


testMultiply

public void testMultiply()
Deprecated. 
test multiply


testMultiply2

public void testMultiply2()
Deprecated. 

testIsSingular

public void testIsSingular()
Deprecated. 
test isSingular


testInverse

public void testInverse()
Deprecated. 
test inverse


testSolve

public void testSolve()
Deprecated. 
test solve


testDeterminant

public void testDeterminant()
Deprecated. 
test determinant


testTrace

public void testTrace()
Deprecated. 
test trace


testScalarAdd

public void testScalarAdd()
Deprecated. 
test sclarAdd


testOperate

public void testOperate()
Deprecated. 
test operate


testMath209

public void testMath209()
Deprecated. 
test issue MATH-209


testTranspose

public void testTranspose()
Deprecated. 
test transpose


testPremultiplyVector

public void testPremultiplyVector()
Deprecated. 
test preMultiply by vector


testPremultiply

public void testPremultiply()
Deprecated. 

testGetVectors

public void testGetVectors()
Deprecated. 

testLUDecomposition

public void testLUDecomposition()
                         throws Exception
Deprecated. 
Throws:
Exception

testSubMatrix

public void testSubMatrix()
Deprecated. 
test submatrix accessors


testGetColumnMatrix

public void testGetColumnMatrix()
Deprecated. 

testGetRowMatrix

public void testGetRowMatrix()
Deprecated. 

testEqualsAndHashCode

public void testEqualsAndHashCode()
Deprecated. 

testToString

public void testToString()
Deprecated. 

testSetSubMatrix

public void testSetSubMatrix()
                      throws Exception
Deprecated. 
Throws:
Exception

assertClose

protected void assertClose(String msg,
                           org.apache.commons.math.linear.BigMatrix m,
                           org.apache.commons.math.linear.BigMatrix n,
                           double tolerance)
Deprecated. 
verifies that two matrices are close (1-norm)


assertClose

protected void assertClose(String msg,
                           double[] m,
                           double[] n,
                           double tolerance)
Deprecated. 
verifies that two vectors are close (sup norm)


splitLU

protected void splitLU(org.apache.commons.math.linear.BigMatrix lu,
                       BigDecimal[][] lowerData,
                       BigDecimal[][] upperData)
                throws org.apache.commons.math.linear.InvalidMatrixException
Deprecated. 
extracts the l and u matrices from compact lu representation

Throws:
org.apache.commons.math.linear.InvalidMatrixException

permuteRows

protected org.apache.commons.math.linear.BigMatrix permuteRows(org.apache.commons.math.linear.BigMatrix matrix,
                                                               int[] permutation)
Deprecated. 
Returns the result of applying the given row permutation to the matrix


verifyDecomposition

protected void verifyDecomposition(org.apache.commons.math.linear.BigMatrix matrix,
                                   org.apache.commons.math.linear.BigMatrix lu)
                            throws Exception
Deprecated. 
Extracts l and u matrices from lu and verifies that matrix = l times u modulo permutation

Throws:
Exception


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.