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.Exception
protected void printTestHeader(java.lang.String str)
public void testMatrixOps() throws java.lang.Exception
java.lang.Exception
public void testIdentity() throws java.lang.Exception
java.lang.Exception
public void testMatZero() throws JepException
JepException
public void testSolve() throws JepException
JepException
public void checkMatrix(java.lang.String str, java.lang.Object expect, double d) throws JepException
JepException
public void testSize() throws JepException
JepException
public void testEle() throws JepException
JepException
public void testMatNaN() throws JepException
JepException
protected java.lang.Object getNumber(double val)
protected java.lang.Object getNumber(java.lang.String s) throws ParseException
ParseException
public void checkMatrix(java.lang.String str, java.lang.Object expect) throws JepException
JepException
public void checkValue(java.lang.String str, java.lang.Object expect) throws JepException
JepException
public void checkValue(java.lang.String str, java.lang.Object expect, double prec) throws JepException
JepException
public boolean equalsMatrix(java.lang.Object expect, java.lang.Object res) throws EvaluationException
EvaluationException
public 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
EvaluationException
public java.lang.Object buildMatrix(java.lang.Object[][] data) throws EvaluationException, ParseException
EvaluationException
ParseException
public java.lang.Object buildVector(java.lang.Object... data) throws EvaluationException, ParseException
EvaluationException
ParseException
Copyright © 2018 Singular Systems http://www.singularsys.com/jep