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 Jep
jep
The parserprotected MatrixFieldI
mf
protected MatrixFactoryI
mfac
protected java.lang.Object
myFalse
protected java.lang.Object
myTrue
protected NumberFactory
numf
-
Constructor Summary
Constructors Constructor Description MatrixFieldBaseTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MatrixI
buildMatrix(java.lang.Object[][] data)
VectorI
buildVector(java.lang.Object... data)
void
checkMatrix(java.lang.String str, java.lang.Object expect)
void
checkMatrix(java.lang.String str, java.lang.Object expect, double d)
void
checkValue(java.lang.String str, java.lang.Object expect)
void
checkValue(java.lang.String str, java.lang.Object expect, double prec)
boolean
equalsEle(java.lang.Object expect, java.lang.Object res, double prec)
boolean
equalsMatrix(java.lang.Object expect, java.lang.Object res)
boolean
equalsMatrix(java.lang.Object expect, java.lang.Object res, double prec)
protected java.lang.Object
getNumber(double val)
protected java.lang.Object
getNumber(java.lang.String s)
protected void
printTestHeader(java.lang.String str)
Prints a header with the name of the test as specified in str.void
setUp()
void
test_serialization_of_vectors_and_matricies()
void
testEle()
void
testIdentity()
void
TestLightWeightComponents()
void
testMatNaN()
void
testMatrixOps()
void
testMatZero()
void
testSize()
void
testSolve()
-
-
-
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:
EvaluationException
ParseException
-
buildVector
public VectorI buildVector(java.lang.Object... data) throws EvaluationException, ParseException
- Throws:
EvaluationException
ParseException
-
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
-
-