Package com.singularsys.exttests.matrix
Class MatrixTest
java.lang.Object
com.singularsys.jeptests.system.JepTest
com.singularsys.jeptests.system.CPTest
com.singularsys.exttests.matrix.MatrixTest
- Direct Known Subclasses:
MRpeMatrixTest
Tests for matrix operations using the
SimpleMatrixField.-
Nested Class Summary
Nested classes/interfaces inherited from class com.singularsys.jeptests.system.JepTest
JepTest.AddFractionsNary, JepTest.AddFractionsStack, JepTest.Diff, JepTest.MyBinary, JepTest.MyNary, JepTest.MyNaryBinary, JepTest.MyNullary, JepTest.MyUnary, JepTest.PiFun, JepTest.Product, JepTest.Square -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DimensionVisitorprotected MatrixFactoryIprotected MatrixFieldIstatic final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MatrixIbuildMatrix(Object[]... eles) protected VectorIbuildVector(Object... eles) voidcheckVector(Object[] expected, Object actual) protected voidmyAssertEquals(String msg, Object expected, Object actual) protected voidvoidsetUp()Sets up the parser.voidtestAdd()voidNull implementation as does not support arrays of matricesvoidvoidtestDet()voidtestDiv()voidvoidvoidtestEq()voidtestId()voidvoidvoidvoidtestMod()voidtestMul()voidvoidtestNeg()voidtestNeq()voidvoidtestSize()voidtestSub()voidvoidprotected voidTest result j.evaluate(j.parse(expr))protected voidvalueTestString(String expr, String expected) Methods inherited from class com.singularsys.jeptests.system.CPTest
testAddOp, testCPStrings, testEmptyEqn2, testMultiDimArrayAccess, testMultiDimArrayAccessShiftZeroMethods inherited from class com.singularsys.jeptests.system.JepTest
assertEqNodes, calcValue, calcValue, compareRecursive, complexValueTest, getNumber, myAssertNaN, myAssertNull, negativeZero, nodeTest, nodeTest, nodeTest, nodeTest, printTestHeader, test_adding_existing_constant_fails, test_not_X_Y, test_parser_sets_parent, testAssign, testBinom, testBlankParser, testCaseNull, testCaseString, testChangeVariable, testChangeVariableComplex, testComments, testComplex, testComplexListAccess, testEmptyEqn, testEvalExceptions, testEvaluate, testEvaluateComplex, testEvaluateString, testExpectedTokenSequence, testFormat, testFunction, testIf, testImplicitMul, testLazyLogical, testLazyLogical2, testLazyLogicalBug, testListAccess, testListAccessShiftZero, testListExtra, testListOperations, testLogarithm, testLogical, testMacroFunction, testMultiDimArray, testMultiDimArrayShiftZero, testMultiLine, testMultiplyBug, testNaN, testNoAssign, testNull, testNumberAsBooleanLogical, testNumbers, testNumParam, testParseException, testPlusPlus, testRecursiveMacroFunction, testSemiColon, testSetAllowUndeclared, testSimpleSum, testSpecialFunctions, testSpecialFunctions, testStrings, testStringsFun, testSwitch, testUminusPower, testX2Y, valueTest, valueTestFail, valueTestNaN, valueTestNull
-
Field Details
-
PRINT_RESULTS
public static final boolean PRINT_RESULTS -
mfact
-
mfield
-
dimv
-
-
Constructor Details
-
MatrixTest
public MatrixTest()
-
-
Method Details
-
setUp
@BeforeEach public void setUp()Description copied from class:JepTestSets up the parser. -
setShiftZeroElePfmc
protected void setShiftZeroElePfmc()- Overrides:
setShiftZeroElePfmcin classJepTest
-
testListFunctions
- Overrides:
testListFunctionsin classJepTest- Throws:
Exception
-
buildVector
- Overrides:
buildVectorin classJepTest- Throws:
Exception
-
buildMatrix
- Overrides:
buildMatrixin classJepTest- Throws:
Exception
-
checkVector
- Overrides:
checkVectorin classJepTest- Throws:
EvaluationException
-
myAssertEquals
protected void myAssertEquals(String msg, Object expected, Object actual) throws EvaluationException - Overrides:
myAssertEqualsin classJepTest- Throws:
EvaluationException
-
testSimpleVector
- Throws:
Exception
-
testAdd
- Throws:
Exception
-
testSub
- Throws:
Exception
-
testNeg
- Throws:
Exception
-
testEq
- Throws:
Exception
-
testNeq
- Throws:
Exception
-
testMul
- Throws:
Exception
-
testDiv
- Throws:
Exception
-
testMod
- Throws:
Exception
-
testDet
- Throws:
Exception
-
testTrace
- Throws:
Exception
-
testTrans
- Throws:
Exception
-
testId
- Throws:
Exception
-
testSize
- Throws:
Exception
-
testMatrixArrayAccess
- Throws:
Exception
-
testMatrixSetElement
- Throws:
Exception
-
testMultiDimArrayPrint
- Overrides:
testMultiDimArrayPrintin classCPTest- Throws:
Exception
-
testDepth3ArrayAccess
@Disabled("Test for Tensors not relevant for Matrix package") @Test public void testDepth3ArrayAccess()Null implementation as does not support arrays of matrices- Overrides:
testDepth3ArrayAccessin classCPTest
-
testDepth3ArrayAccessShiftZero
@Disabled("Test for Tensors not relevant for Matrix package") @Test public void testDepth3ArrayAccessShiftZero()- Overrides:
testDepth3ArrayAccessShiftZeroin classCPTest
-
testEleUnit
- Overrides:
testEleUnitin classJepTest- Throws:
Exception
-
testEleUnitShiftZero
- Throws:
Exception
-
valueTest
Description copied from class:JepTestTest result j.evaluate(j.parse(expr))- Overrides:
valueTestin classJepTest- Parameters:
expr- the expression to parse and evaluateexpected- result expected- Throws:
JepException
-
valueTestString
- Overrides:
valueTestStringin classJepTest- Throws:
Exception
-