|
||||||||||
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.BigMatrixImplTest
@Deprecated public final class BigMatrixImplTest
Test cases for the BigMatrixImpl
class.
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 |
---|
protected String[][] testDataString
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 BigMatrixImplTest(String name)
Method Detail |
---|
public static junit.framework.Test suite()
public static final double[] asDouble(BigDecimal[] data)
public static final double[][] asDouble(BigDecimal[][] data)
public static final BigDecimal[] asBigDecimal(double[] data)
public static final BigDecimal[][] asBigDecimal(double[][] data)
public void testDimensions()
public void testCopyFunctions()
public void testConstructors()
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 testMath209()
public void testTranspose()
public void testPremultiplyVector()
public void testPremultiply()
public void testGetVectors()
public void testLUDecomposition() throws Exception
Exception
public void testSubMatrix()
public void testGetColumnMatrix()
public void testGetRowMatrix()
public void testEqualsAndHashCode()
public void testToString()
public void testSetSubMatrix() throws Exception
Exception
protected void assertClose(String msg, org.apache.commons.math.linear.BigMatrix m, org.apache.commons.math.linear.BigMatrix n, double tolerance)
protected void assertClose(String msg, double[] m, double[] n, double tolerance)
protected void splitLU(org.apache.commons.math.linear.BigMatrix lu, BigDecimal[][] lowerData, BigDecimal[][] upperData) throws org.apache.commons.math.linear.InvalidMatrixException
org.apache.commons.math.linear.InvalidMatrixException
protected org.apache.commons.math.linear.BigMatrix permuteRows(org.apache.commons.math.linear.BigMatrix matrix, int[] permutation)
protected void verifyDecomposition(org.apache.commons.math.linear.BigMatrix matrix, org.apache.commons.math.linear.BigMatrix lu) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |