예제 #1
0
        public void TestAddition(double a, double b, double c)
        {
            RealFieldElement elementA = a;
            RealFieldElement elementB = b;
            RealFieldElement elementC = c;

            Assert.IsTrue(Field.ElementsEqual(Field.Add(elementA, elementB), elementC));
        }
예제 #2
0
        public void TestElement(string matrixKey, int i, int j, double element)
        {
            Matrix <RealFieldElement> matrix = TestRealMatrices[matrixKey];

            Assert.IsTrue(TestRealField.ElementsEqual(matrix[i, j], element));
        }