|
||||||||||
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.FieldMatrixImplTest
public final class FieldMatrixImplTest
Test cases for the Array2DRowFieldMatrix
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.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 | |
---|---|
FieldMatrixImplTest(String name)
|
Method Summary | |
---|---|
protected org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> |
permuteRows(org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> matrix,
int[] permutation)
Returns the result of applying the given row permutation to the matrix |
protected void |
splitLU(org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> lu,
org.apache.commons.math.fraction.Fraction[][] lowerData,
org.apache.commons.math.fraction.Fraction[][] 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 |
testCopySubMatrix()
|
void |
testDimensions()
test dimensions |
void |
testEqualsAndHashCode()
|
void |
testExamples()
test examples in user guide |
void |
testGetColumn()
|
void |
testGetColumnMatrix()
|
void |
testGetColumnVector()
|
void |
testGetEntry()
|
void |
testGetRow()
|
void |
testGetRowMatrix()
|
void |
testGetRowVector()
|
void |
testGetSubMatrix()
|
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 |
testSerial()
|
void |
testSetColumn()
|
void |
testSetColumnMatrix()
|
void |
testSetColumnVector()
|
void |
testSetRow()
|
void |
testSetRowMatrix()
|
void |
testSetRowVector()
|
void |
testSetSubMatrix()
|
void |
testToString()
|
void |
testTrace()
test trace |
void |
testTranspose()
test transpose |
void |
testWalk()
|
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
Constructor Detail |
---|
public FieldMatrixImplTest(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 testGetSubMatrix()
public void testCopySubMatrix()
public void testGetRowMatrix()
public void testSetRowMatrix()
public void testGetColumnMatrix()
public void testSetColumnMatrix()
public void testGetRowVector()
public void testSetRowVector()
public void testGetColumnVector()
public void testSetColumnVector()
public void testGetRow()
public void testSetRow()
public void testGetColumn()
public void testSetColumn()
public void testEqualsAndHashCode()
public void testToString()
public void testSetSubMatrix() throws Exception
Exception
public void testWalk()
public void testSerial()
protected void splitLU(org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> lu, org.apache.commons.math.fraction.Fraction[][] lowerData, org.apache.commons.math.fraction.Fraction[][] upperData) throws org.apache.commons.math.linear.InvalidMatrixException
org.apache.commons.math.linear.InvalidMatrixException
protected org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> permuteRows(org.apache.commons.math.linear.FieldMatrix<org.apache.commons.math.fraction.Fraction> matrix, int[] permutation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |