public void TestMaximumLocation() { var data = new DoubleArray(new[] { 1.0, 2.0, 5.0, 4.0 }, 2, 2); var max = data.MaxLoc(); Assert.AreEqual(5.0, data.At(max), 1e-12); }