Exemplo n.º 1
0
		public void MemberDivide()
		{
			ComplexDoubleMatrix a = new ComplexDoubleMatrix(2);
			a[0, 0] = new Complex(2);
			a[0, 1] = new Complex(4);
			a[1, 0] = new Complex(6);
			a[1, 1] = new Complex(8);
			a.Divide(2);
			Assert.AreEqual(a[0, 0], new Complex(1));
			Assert.AreEqual(a[0, 1], new Complex(2));
			Assert.AreEqual(a[1, 0], new Complex(3));
			Assert.AreEqual(a[1, 1], new Complex(4));
		}