コード例 #1
0
 public void GetDeterminantNotSquare()
 {
   DoubleMatrix a = new DoubleMatrix(3,2);
   a[0,0] = 1;
   a[0,1] = 2;
   a[1,0] = 3;
   a[1,1] = 4;
   a[2,0] = 5;
   a[2,1] = 6;
   double b = a.GetDeterminant();
 }   
コード例 #2
0
 public void GetDeterminant()
 {
   DoubleMatrix a = new DoubleMatrix(2,2);
   a[0,0] = 2;
   a[0,1] = 4;
   a[1,0] = 3;
   a[1,1] = 7;
   double b = a.GetDeterminant();
   Assert.AreEqual(b, 2.000,TOLERENCE);
 }