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