Ejemplo n.º 1
0
        public void CheckUpdatingMatrix(double[,] array, double[,] expected)
        {
            var matrix = new MatrixSymmetric(array);

            matrix.SetValue(1, 2, 1);
            Assert.That(matrix.Values, Is.EqualTo(expected));
        }
Ejemplo n.º 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);
        }