Class MatrixTest

    • Constructor Detail

      • MatrixTest

        public MatrixTest()
    • Method Detail

      • setUp

        public void setUp()
        Description copied from class: JepTest
        Sets up the parser.
        Overrides:
        setUp in class CPTest
      • testListFunctions

        public void testListFunctions()
                               throws java.lang.Exception
        Overrides:
        testListFunctions in class JepTest
        Throws:
        java.lang.Exception
      • buildVector

        protected VectorI buildVector​(java.lang.Object... eles)
                               throws java.lang.Exception
        Overrides:
        buildVector in class JepTest
        Throws:
        java.lang.Exception
      • buildMatrix

        protected MatrixI buildMatrix​(java.lang.Object[]... eles)
                               throws java.lang.Exception
        Overrides:
        buildMatrix in class JepTest
        Throws:
        java.lang.Exception
      • testSimpleVector

        public void testSimpleVector()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testAdd

        public void testAdd()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSub

        public void testSub()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNeg

        public void testNeg()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testEq

        public void testEq()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testNeq

        public void testNeq()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMul

        public void testMul()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDiv

        public void testDiv()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMod

        public void testMod()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testDet

        public void testDet()
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTrace

        public void testTrace()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testTrans

        public void testTrans()
                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testId

        public void testId()
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testSize

        public void testSize()
                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMatrixArrayAccess

        public void testMatrixArrayAccess()
                                   throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMatrixSetElement

        public void testMatrixSetElement()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testMultiDimArrayPrint

        public void testMultiDimArrayPrint()
                                    throws java.lang.Exception
        Overrides:
        testMultiDimArrayPrint in class CPTest
        Throws:
        java.lang.Exception
      • testDepth3ArrayAccess

        public void testDepth3ArrayAccess()
                                   throws java.lang.Exception
        Null implementation as does not support arrays of matrices
        Overrides:
        testDepth3ArrayAccess in class CPTest
        Throws:
        java.lang.Exception
      • testDepth3ArrayAccessShiftZero

        public void testDepth3ArrayAccessShiftZero()
                                            throws java.lang.Exception
        Overrides:
        testDepth3ArrayAccessShiftZero in class CPTest
        Throws:
        java.lang.Exception
      • testEleUnit

        public void testEleUnit()
                         throws java.lang.Exception
        Overrides:
        testEleUnit in class JepTest
        Throws:
        java.lang.Exception
      • testEleUnitShiftZero

        public void testEleUnitShiftZero()
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • valueTest

        protected void valueTest​(java.lang.String expr,
                                 java.lang.Object expected)
                          throws java.lang.Exception
        Description copied from class: JepTest
        Test result j.evaluate(j.parse(expr))
        Overrides:
        valueTest in class JepTest
        Parameters:
        expr - the expression to parse and evaluate
        expected - result expected
        Throws:
        java.lang.Exception
      • valueTestString

        protected void valueTestString​(java.lang.String expr,
                                       java.lang.String expected)
                                throws java.lang.Exception
        Overrides:
        valueTestString in class JepTest
        Throws:
        java.lang.Exception