|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.math.linear.RealMatrixImplTest
public final class RealMatrixImplTest
Test cases for the RealMatrixImpl
class.
Field Summary | |
---|---|
protected double[][] |
bigSingular
|
protected double[][] |
detData
|
protected double[][] |
detData2
|
protected double |
entryTolerance
|
protected double[][] |
id
|
protected double[][] |
luData
|
protected double[][] |
luDataLUDecomposition
|
protected double |
normTolerance
|
protected double[] |
preMultTest
|
protected double[][] |
singular
|
protected double[][] |
subColumn1
|
protected double[][] |
subColumn3
|
protected double[][] |
subRow0
|
protected double[][] |
subRow3
|
protected double[][] |
subRows00Cols33
|
protected double[][] |
subRows01Cols23
|
protected double[][] |
subRows02Cols13
|
protected double[][] |
subRows03Cols12
|
protected double[][] |
subRows03Cols123
|
protected double[][] |
subRows20Cols123
|
protected double[][] |
subRows23Cols00
|
protected double[][] |
subRows31Cols31
|
protected double[][] |
subTestData
|
protected double[][] |
testData
|
protected double[][] |
testData2
|
protected double[][] |
testData2T
|
protected double[] |
testDataCol3
|
protected double[][] |
testDataInv
|
protected double[][] |
testDataLU
|
protected double[][] |
testDataMinus
|
protected double[][] |
testDataPlus2
|
protected double[][] |
testDataPlusInv
|
protected double[] |
testDataRow1
|
protected double[] |
testVector
|
protected double[] |
testVector2
|
Constructor Summary | |
---|---|
RealMatrixImplTest(java.lang.String name)
|
Method Summary | |
---|---|
protected void |
assertClose(java.lang.String msg,
double[] m,
double[] n,
double tolerance)
verifies that two vectors are close (sup norm) |
protected void |
assertClose(java.lang.String msg,
org.apache.commons.math.linear.RealMatrix m,
org.apache.commons.math.linear.RealMatrix n,
double tolerance)
verifies that two matrices are close (1-norm) |
protected org.apache.commons.math.linear.RealMatrix |
permuteRows(org.apache.commons.math.linear.RealMatrix matrix,
int[] permutation)
Returns the result of applying the given row permutation to the matrix |
void |
setUp()
|
protected void |
splitLU(org.apache.commons.math.linear.RealMatrix lu,
double[][] lowerData,
double[][] upperData)
extracts the l and u matrices from compact lu representation |
static junit.framework.Test |
suite()
|
void |
testAdd()
test add |
void |
testAddFail()
test add failure |
void |
testCopyFunctions()
test copy functions |
void |
testDeterminant()
test determinant |
void |
testDimensions()
test dimensions |
void |
testEqualsAndHashCode()
|
void |
testExamples()
test examples in user guide |
void |
testGetColumnMatrix()
|
void |
testGetEntry()
|
void |
testGetRowMatrix()
|
void |
testGetVectors()
|
void |
testInverse()
test inverse |
void |
testIsSingular()
test isSingular |
void |
testLUDecomposition()
|
void |
testMultiply()
test multiply |
void |
testMultiply2()
|
void |
testNorm()
test norm |
void |
testOperate()
test operate |
void |
testPlusMinus()
test m-n = m + -n |
void |
testPremultiply()
|
void |
testPremultiplyVector()
test preMultiply by vector |
void |
testScalarAdd()
test sclarAdd |
void |
testSetSubMatrix()
|
void |
testSolve()
test solve |
void |
testSubMatrix()
|
void |
testToString()
|
void |
testTrace()
test trace |
void |
testTranspose()
test transpose |
protected void |
verifyDecomposition(org.apache.commons.math.linear.RealMatrix matrix,
org.apache.commons.math.linear.RealMatrix lu)
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, 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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected double[][] id
protected double[][] testData
protected double[][] testDataLU
protected double[][] testDataPlus2
protected double[][] testDataMinus
protected double[] testDataRow1
protected double[] testDataCol3
protected double[][] testDataInv
protected double[] preMultTest
protected double[][] testData2
protected double[][] testData2T
protected double[][] testDataPlusInv
protected double[][] luData
protected double[][] luDataLUDecomposition
protected double[][] singular
protected double[][] bigSingular
protected double[][] detData
protected double[][] detData2
protected double[] testVector
protected double[] testVector2
protected double[][] subTestData
protected double[][] subRows02Cols13
protected double[][] subRows03Cols12
protected double[][] subRows03Cols123
protected double[][] subRows20Cols123
protected double[][] subRows31Cols31
protected double[][] subRows01Cols23
protected double[][] subRows23Cols00
protected double[][] subRows00Cols33
protected double[][] subRow0
protected double[][] subRow3
protected double[][] subColumn1
protected double[][] subColumn3
protected double entryTolerance
protected double normTolerance
Constructor Detail |
---|
public RealMatrixImplTest(java.lang.String name)
Method Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public static junit.framework.Test suite()
public void testDimensions()
public void testCopyFunctions()
public void testAdd()
public void testAddFail()
public void testNorm()
public void testPlusMinus()
public void testMultiply()
public void testMultiply2()
public void testIsSingular()
public void testInverse()
public void testSolve()
public void testDeterminant()
public void testTrace()
public void testScalarAdd()
public void testOperate()
public void testTranspose()
public void testPremultiplyVector()
public void testPremultiply()
public void testGetVectors()
public void testGetEntry()
public void testLUDecomposition() throws java.lang.Exception
java.lang.Exception
public void testExamples()
public void testSubMatrix()
public void testGetRowMatrix()
public void testGetColumnMatrix()
public void testEqualsAndHashCode()
public void testToString()
public void testSetSubMatrix() throws java.lang.Exception
java.lang.Exception
protected void assertClose(java.lang.String msg, org.apache.commons.math.linear.RealMatrix m, org.apache.commons.math.linear.RealMatrix n, double tolerance)
protected void assertClose(java.lang.String msg, double[] m, double[] n, double tolerance)
protected void splitLU(org.apache.commons.math.linear.RealMatrix lu, double[][] lowerData, double[][] upperData) throws org.apache.commons.math.linear.InvalidMatrixException
org.apache.commons.math.linear.InvalidMatrixException
protected org.apache.commons.math.linear.RealMatrix permuteRows(org.apache.commons.math.linear.RealMatrix matrix, int[] permutation)
protected void verifyDecomposition(org.apache.commons.math.linear.RealMatrix matrix, org.apache.commons.math.linear.RealMatrix lu) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |