|
||||||||||
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.SparseFieldMatrixTest
public class SparseFieldMatrixTest
Test cases for the SparseFieldMatrix
class.
Field Summary | |
---|---|
protected org.apache.commons.math.fraction.Fraction[][] |
bigSingular
|
protected org.apache.commons.math.fraction.Fraction[][] |
detData
|
protected org.apache.commons.math.fraction.Fraction[][] |
detData2
|
protected double |
entryTolerance
|
protected org.apache.commons.math.Field<org.apache.commons.math.fraction.Fraction> |
field
|
protected org.apache.commons.math.fraction.Fraction[][] |
id
|
protected org.apache.commons.math.fraction.Fraction[][] |
luData
|
protected org.apache.commons.math.fraction.Fraction[][] |
luDataLUDecomposition
|
protected double |
normTolerance
|
protected org.apache.commons.math.fraction.Fraction[] |
preMultTest
|
protected org.apache.commons.math.fraction.Fraction[][] |
singular
|
protected org.apache.commons.math.fraction.Fraction[][] |
subColumn1
|
protected org.apache.commons.math.fraction.Fraction[][] |
subColumn3
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRow0
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRow3
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRows00Cols33
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRows01Cols23
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRows02Cols13
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRows03Cols12
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRows03Cols123
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRows20Cols123
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRows23Cols00
|
protected org.apache.commons.math.fraction.Fraction[][] |
subRows31Cols31
|
protected org.apache.commons.math.fraction.Fraction[][] |
subTestData
|
protected org.apache.commons.math.fraction.Fraction[][] |
testData
|
protected org.apache.commons.math.fraction.Fraction[][] |
testData2
|
protected org.apache.commons.math.fraction.Fraction[][] |
testData2T
|
protected org.apache.commons.math.fraction.Fraction[] |
testDataCol3
|
protected org.apache.commons.math.fraction.Fraction[][] |
testDataInv
|
protected org.apache.commons.math.fraction.Fraction[][] |
testDataLU
|
protected org.apache.commons.math.fraction.Fraction[][] |
testDataMinus
|
protected org.apache.commons.math.fraction.Fraction[][] |
testDataPlus2
|
protected org.apache.commons.math.fraction.Fraction[][] |
testDataPlusInv
|
protected org.apache.commons.math.fraction.Fraction[] |
testDataRow1
|
protected org.apache.commons.math.fraction.Fraction[] |
testVector
|
protected org.apache.commons.math.fraction.Fraction[] |
testVector2
|
Constructor Summary | |
---|---|
SparseFieldMatrixTest(String name)
|
Method Summary | |
---|---|
protected void |
assertClose(String msg,
org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> m,
org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> n,
double tolerance)
verifies that two matrices are close (1-norm) |
protected void |
assertClose(String msg,
org.apache.commons.math.fraction.Fraction[] m,
org.apache.commons.math.fraction.Fraction[] n,
double tolerance)
verifies that two vectors are close (sup norm) |
static junit.framework.Test |
suite()
|
void |
testAdd()
test add |
void |
testAddFail()
test add failure |
void |
testCopyFunctions()
test copy functions |
void |
testDimensions()
test dimensions |
void |
testEqualsAndHashCode()
|
void |
testExamples()
test examples in user guide |
void |
testGetColumnMatrix()
|
void |
testGetColumnVector()
|
void |
testGetEntry()
|
void |
testGetRowMatrix()
|
void |
testGetRowVector()
|
void |
testGetVectors()
|
void |
testMath209()
test issue MATH-209 |
void |
testMultiply()
test multiply |
void |
testMultiply2()
|
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 |
testSubMatrix()
|
void |
testTrace()
test trace |
void |
testTranspose()
test transpose |
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 |
---|
protected org.apache.commons.math.fraction.Fraction[][] id
protected org.apache.commons.math.fraction.Fraction[][] testData
protected org.apache.commons.math.fraction.Fraction[][] testDataLU
protected org.apache.commons.math.fraction.Fraction[][] testDataPlus2
protected org.apache.commons.math.fraction.Fraction[][] testDataMinus
protected org.apache.commons.math.fraction.Fraction[] testDataRow1
protected org.apache.commons.math.fraction.Fraction[] testDataCol3
protected org.apache.commons.math.fraction.Fraction[][] testDataInv
protected org.apache.commons.math.fraction.Fraction[] preMultTest
protected org.apache.commons.math.fraction.Fraction[][] testData2
protected org.apache.commons.math.fraction.Fraction[][] testData2T
protected org.apache.commons.math.fraction.Fraction[][] testDataPlusInv
protected org.apache.commons.math.fraction.Fraction[][] luData
protected org.apache.commons.math.fraction.Fraction[][] luDataLUDecomposition
protected org.apache.commons.math.fraction.Fraction[][] singular
protected org.apache.commons.math.fraction.Fraction[][] bigSingular
protected org.apache.commons.math.fraction.Fraction[][] detData
protected org.apache.commons.math.fraction.Fraction[][] detData2
protected org.apache.commons.math.fraction.Fraction[] testVector
protected org.apache.commons.math.fraction.Fraction[] testVector2
protected org.apache.commons.math.fraction.Fraction[][] subTestData
protected org.apache.commons.math.fraction.Fraction[][] subRows02Cols13
protected org.apache.commons.math.fraction.Fraction[][] subRows03Cols12
protected org.apache.commons.math.fraction.Fraction[][] subRows03Cols123
protected org.apache.commons.math.fraction.Fraction[][] subRows20Cols123
protected org.apache.commons.math.fraction.Fraction[][] subRows31Cols31
protected org.apache.commons.math.fraction.Fraction[][] subRows01Cols23
protected org.apache.commons.math.fraction.Fraction[][] subRows23Cols00
protected org.apache.commons.math.fraction.Fraction[][] subRows00Cols33
protected org.apache.commons.math.fraction.Fraction[][] subRow0
protected org.apache.commons.math.fraction.Fraction[][] subRow3
protected org.apache.commons.math.fraction.Fraction[][] subColumn1
protected org.apache.commons.math.fraction.Fraction[][] subColumn3
protected double entryTolerance
protected double normTolerance
protected org.apache.commons.math.Field<org.apache.commons.math.fraction.Fraction> field
Constructor Detail |
---|
public SparseFieldMatrixTest(String name)
Method Detail |
---|
public static junit.framework.Test suite()
public void testDimensions()
public void testCopyFunctions()
public void testAdd()
public void testAddFail()
public void testPlusMinus()
public void testMultiply()
public void testMultiply2()
public void testTrace()
public void testScalarAdd()
public void testOperate()
public void testMath209()
public void testTranspose()
public void testPremultiplyVector()
public void testPremultiply()
public void testGetVectors()
public void testGetEntry()
public void testExamples()
public void testSubMatrix()
public void testGetRowMatrix()
public void testGetColumnMatrix()
public void testGetRowVector()
public void testGetColumnVector()
public void testEqualsAndHashCode()
public void testSetSubMatrix() throws Exception
Exception
protected void assertClose(String msg, org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> m, org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> n, double tolerance)
protected void assertClose(String msg, org.apache.commons.math.fraction.Fraction[] m, org.apache.commons.math.fraction.Fraction[] n, double tolerance)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |