コード例 #1
0
 public void TestRowAverage()
 {
     var matrix = new Matrix<double>(5, 5);
     double[] row = { 1, 2, 3, 4, 5 };
     for (int i = 0; i < 5; i++)
         matrix.SetRow(i, row);
     Assert.AreEqual(3.0, matrix.RowAverage(1));
     Assert.AreEqual(3.0, matrix.RowAverage(4));
 }