public void MaximumExample() { var vector1 = new VectorN(4); vector1[0] = 1; vector1[1] = -4; vector1[2] = 3; vector1[3] = 2; Assert.AreEqual(3, vector1.Maximum()); }
public void Simple() { var vector = new VectorN(3); vector.SetValues(1, -4, 3); Assert.AreEqual(3, vector.Maximum()); Assert.AreEqual(1, vector[0]); Assert.AreEqual(-4, vector[1]); Assert.AreEqual(3, vector[2]); }