Example #1
0
 public void TestPointwise()
 {
     Func<int, int, int> func = (x, y) => x * y;
     var v = new Vector<string, int> { { "x", 2 }, { "y", 1 } };
     var w = new Vector<string, int> { { "x", 3 }, { "y", -3 } };
     v.PointWise(w, func).ShouldEqual(new Vector<string, int> { { "x", 6 }, { "y", -3 } });
 }