Esempio n. 1
0
		public void SetDiagonal()
		{
			ComplexDoubleMatrix a = new ComplexDoubleMatrix(2, 2);
			ComplexDoubleVector b = new ComplexDoubleVector(2);
			b[0] = new Complex(1);
			b[1] = new Complex(2);
			a.SetDiagonal(b);
			Assert.AreEqual(b[0], a[0, 0]);
			Assert.AreEqual(b[1], a[1, 1]);
		}