public abstract class MatrixFieldTestBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Jep |
jep
The parser
|
protected MatrixFieldI |
mf |
protected MatrixFactoryI |
mfac |
protected java.lang.Object |
myFalse |
protected java.lang.Object |
myTrue |
protected NumberFactory |
numf |
| Constructor and Description |
|---|
MatrixFieldTestBase() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
buildMatrix(java.lang.Object[][] data) |
java.lang.Object |
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 |
testEle() |
void |
testIdentity() |
void |
testMatNaN() |
void |
testMatrixOps() |
void |
testMatZero() |
void |
testSize() |
void |
testSolve() |
protected MatrixFieldI mf
protected MatrixFactoryI mfac
protected NumberFactory numf
protected Jep jep
protected java.lang.Object myFalse
protected java.lang.Object myTrue
public void setUp()
throws java.lang.Exception
java.lang.Exceptionprotected void printTestHeader(java.lang.String str)
public void testMatrixOps()
throws java.lang.Exception
java.lang.Exceptionpublic void testIdentity()
throws java.lang.Exception
java.lang.Exceptionpublic void testMatZero()
throws JepException
JepExceptionpublic void testSolve()
throws JepException
JepExceptionpublic void checkMatrix(java.lang.String str,
java.lang.Object expect,
double d)
throws JepException
JepExceptionpublic void testSize()
throws JepException
JepExceptionpublic void testEle()
throws JepException
JepExceptionpublic void testMatNaN()
throws JepException
JepExceptionprotected java.lang.Object getNumber(double val)
protected java.lang.Object getNumber(java.lang.String s)
throws ParseException
ParseExceptionpublic void checkMatrix(java.lang.String str,
java.lang.Object expect)
throws JepException
JepExceptionpublic void checkValue(java.lang.String str,
java.lang.Object expect)
throws JepException
JepExceptionpublic void checkValue(java.lang.String str,
java.lang.Object expect,
double prec)
throws JepException
JepExceptionpublic boolean equalsMatrix(java.lang.Object expect,
java.lang.Object res)
throws EvaluationException
EvaluationExceptionpublic boolean equalsEle(java.lang.Object expect,
java.lang.Object res,
double prec)
public boolean equalsMatrix(java.lang.Object expect,
java.lang.Object res,
double prec)
throws EvaluationException
EvaluationExceptionpublic java.lang.Object buildMatrix(java.lang.Object[][] data)
throws EvaluationException,
ParseException
EvaluationExceptionParseExceptionpublic java.lang.Object buildVector(java.lang.Object... data)
throws EvaluationException,
ParseException
EvaluationExceptionParseExceptionCopyright © 2018 Singular Systems http://www.singularsys.com/jep