예제 #1
0
		public void GetRowOutOfRange()
		{
			FloatMatrix a = new FloatMatrix(2, 2);
			FloatVector b = a.GetRow(3);
		}
예제 #2
0
		public void GetRow()
		{
			FloatMatrix a = new FloatMatrix(2, 2);
			a[0, 0] = 1;
			a[0, 1] = 2;
			a[1, 0] = 3;
			a[1, 1] = 4;
			FloatVector b = a.GetRow(0);
			Assert.AreEqual(b[0], a[0, 0]);
			Assert.AreEqual(b[1], a[0, 1]);
		}