Exemplo n.º 1
0
        public void TestMatrixMultiplication()
        {
            var matrixA = new double[, ] {
                { 1, 2, 3 }, { 4, 5, 6 }, { 7, 8, 9 }
            };
            var matrixB = new double[] { 7, 8, 9 };

            var newMatrix = MathMethods.MatrixMultiply(matrixA, matrixB);

            Assert.AreEqual(122, newMatrix[1]);
        }