|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math3.linear.SparseFieldMatrixTest
public class SparseFieldMatrixTest
Test cases for the SparseFieldMatrix class.
| Constructor Summary | |
|---|---|
SparseFieldMatrixTest()
|
|
| Method Summary | |
|---|---|
protected void |
assertClose(String msg,
FieldMatrix<Fraction> m,
FieldMatrix<Fraction> n,
double tolerance)
verifies that two matrices are close (1-norm) |
protected void |
assertClose(String msg,
Fraction[] m,
Fraction[] n,
double tolerance)
verifies that two vectors are close (sup norm) |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Fraction[][] id
protected Fraction[][] testData
protected Fraction[][] testDataLU
protected Fraction[][] testDataPlus2
protected Fraction[][] testDataMinus
protected Fraction[] testDataRow1
protected Fraction[] testDataCol3
protected Fraction[][] testDataInv
protected Fraction[] preMultTest
protected Fraction[][] testData2
protected Fraction[][] testData2T
protected Fraction[][] testDataPlusInv
protected Fraction[][] luData
protected Fraction[][] luDataLUDecomposition
protected Fraction[][] singular
protected Fraction[][] bigSingular
protected Fraction[][] detData
protected Fraction[][] detData2
protected Fraction[] testVector
protected Fraction[] testVector2
protected Fraction[][] subTestData
protected Fraction[][] subRows02Cols13
protected Fraction[][] subRows03Cols12
protected Fraction[][] subRows03Cols123
protected Fraction[][] subRows20Cols123
protected Fraction[][] subRows31Cols31
protected Fraction[][] subRows01Cols23
protected Fraction[][] subRows23Cols00
protected Fraction[][] subRows00Cols33
protected Fraction[][] subRow0
protected Fraction[][] subRow3
protected Fraction[][] subColumn1
protected Fraction[][] subColumn3
protected double entryTolerance
protected double normTolerance
protected Field<Fraction> field
| Constructor Detail |
|---|
public SparseFieldMatrixTest()
| Method Detail |
|---|
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()
protected void assertClose(String msg,
FieldMatrix<Fraction> m,
FieldMatrix<Fraction> n,
double tolerance)
protected void assertClose(String msg,
Fraction[] m,
Fraction[] n,
double tolerance)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||