public void ArgMaxLastAxis() { // arrange var targetData = new int[4]; var srcData = new[] { 4, 2, 7, 1 }; var target = new DataAndLayout <int>(targetData, new FastAccess(new Layout(new int[] { 4 }, 0, new int[] { 1 }))); var src = new DataAndLayout <int>(srcData, new FastAccess(new Layout(new int[] { 4 }, 0, new int[] { 1 }))); // action ScalarOps.ArgMaxLastAxis(target, src); // assert Assert.AreEqual(2, targetData[0]); }