예제 #1
0
		public void CopyNull()
		{
			FloatMatrix a = null;
			FloatMatrix b = new FloatMatrix(2);
			b.Copy(a);
		}
예제 #2
0
		public void Copy()
		{
			FloatMatrix a = new FloatMatrix(2);
			a[0, 0] = 1;
			a[0, 1] = 2;
			a[1, 0] = 3;
			a[1, 1] = 4;
			FloatMatrix b = new FloatMatrix(2);
			b.Copy(a);
			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]);
		}