Package com.singularsys.exttests.matrix
Class MatrixFieldBaseTest
- java.lang.Object
-
- com.singularsys.exttests.matrix.MatrixFieldBaseTest
-
- Direct Known Subclasses:
BigDecimalBooleanMatrixTest,ComplexMatrixTest,DoubleComplexFIeldMatrixTest,DoubleMatrixTest,FieldObjectMatrixTest,MRpeMatrixFieldTest,RationalMatrixTest
public abstract class MatrixFieldBaseTest extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected JepjepThe parserprotected MatrixFieldImfprotected MatrixFactoryImfacprotected java.lang.ObjectmyFalseprotected java.lang.ObjectmyTrueprotected NumberFactorynumf
-
Constructor Summary
Constructors Constructor Description MatrixFieldBaseTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixIbuildMatrix(java.lang.Object[][] data)VectorIbuildVector(java.lang.Object... data)voidcheckMatrix(java.lang.String str, java.lang.Object expect)voidcheckMatrix(java.lang.String str, java.lang.Object expect, double d)voidcheckValue(java.lang.String str, java.lang.Object expect)voidcheckValue(java.lang.String str, java.lang.Object expect, double prec)booleanequalsEle(java.lang.Object expect, java.lang.Object res, double prec)booleanequalsMatrix(java.lang.Object expect, java.lang.Object res)booleanequalsMatrix(java.lang.Object expect, java.lang.Object res, double prec)protected java.lang.ObjectgetNumber(double val)protected java.lang.ObjectgetNumber(java.lang.String s)protected voidprintTestHeader(java.lang.String str)Prints a header with the name of the test as specified in str.voidsetUp()voidtest_serialization_of_vectors_and_matricies()voidtestEle()voidtestIdentity()voidTestLightWeightComponents()voidtestMatNaN()voidtestMatrixOps()voidtestMatZero()voidtestSize()voidtestSolve()
-
-
-
Field Detail
-
mf
protected MatrixFieldI mf
-
mfac
protected MatrixFactoryI mfac
-
numf
protected NumberFactory numf
-
jep
protected Jep jep
The parser
-
myFalse
protected java.lang.Object myFalse
-
myTrue
protected java.lang.Object myTrue
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
printTestHeader
protected void printTestHeader(java.lang.String str)
Prints a header with the name of the test as specified in str.
-
testMatrixOps
public void testMatrixOps() throws java.lang.Exception- Throws:
java.lang.Exception
-
testIdentity
public void testIdentity() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMatZero
public void testMatZero() throws JepException- Throws:
JepException
-
testSolve
public void testSolve() throws JepException- Throws:
JepException
-
checkMatrix
public void checkMatrix(java.lang.String str, java.lang.Object expect, double d) throws JepException- Throws:
JepException
-
testSize
public void testSize() throws JepException- Throws:
JepException
-
testEle
public void testEle() throws JepException- Throws:
JepException
-
testMatNaN
public void testMatNaN() throws JepException- Throws:
JepException
-
getNumber
protected java.lang.Object getNumber(double val)
-
getNumber
protected java.lang.Object getNumber(java.lang.String s) throws ParseException- Throws:
ParseException
-
checkMatrix
public void checkMatrix(java.lang.String str, java.lang.Object expect) throws JepException- Throws:
JepException
-
checkValue
public void checkValue(java.lang.String str, java.lang.Object expect) throws JepException- Throws:
JepException
-
checkValue
public void checkValue(java.lang.String str, java.lang.Object expect, double prec) throws JepException- Throws:
JepException
-
equalsMatrix
public boolean equalsMatrix(java.lang.Object expect, java.lang.Object res) throws EvaluationException- Throws:
EvaluationException
-
equalsEle
public boolean equalsEle(java.lang.Object expect, java.lang.Object res, double prec)
-
equalsMatrix
public boolean equalsMatrix(java.lang.Object expect, java.lang.Object res, double prec) throws EvaluationException- Throws:
EvaluationException
-
buildMatrix
public MatrixI buildMatrix(java.lang.Object[][] data) throws EvaluationException, ParseException
- Throws:
EvaluationExceptionParseException
-
buildVector
public VectorI buildVector(java.lang.Object... data) throws EvaluationException, ParseException
- Throws:
EvaluationExceptionParseException
-
TestLightWeightComponents
public void TestLightWeightComponents()
-
test_serialization_of_vectors_and_matricies
public void test_serialization_of_vectors_and_matricies() throws java.lang.Exception- Throws:
java.lang.Exception
-
-