Exemplo n.º 1
0
 public void ToMatrixD()
 {
     double x = 23.4;
       double y = -11.0;
       double z = 0.0;
       double w = 0.3;
       VectorD v = new VectorD(new[] { x, y, z, w });
       MatrixD matrix = v.ToMatrixD();
       Assert.AreEqual(4, matrix.NumberOfRows);
       Assert.AreEqual(1, matrix.NumberOfColumns);
       Assert.AreEqual(x, matrix[0, 0]);
       Assert.AreEqual(y, matrix[1, 0]);
       Assert.AreEqual(z, matrix[2, 0]);
       Assert.AreEqual(w, matrix[3, 0]);
 }