Example #1
0
        public void CheckUpdatingMatrix(double[,] array, double[,] expected)
        {
            var matrix = new MatrixSquare(array);

            matrix.SetValue(1, 2, 1);
            matrix.SetValue(1, 1, 2);
            Assert.That(matrix.Values, Is.EqualTo(expected));
        }
Example #2
0
        static void Main(string[] args)
        {
            var matrix1 = new MatrixSquare(3);

            matrix1.SetValue(1, 0, 0);

            var matrix2 = new MatrixSymmetric(3);

            matrix2.SetValue(2, 1, 1);

            var matrix3 = new MatrixDiagonal(3);

            matrix3.SetValue(3, 1, 1);
        }