public static AFArray Max(AFArray arr, int dim) { IntPtr ptr; Internal.VERIFY(AFAlgorithm.af_max(out ptr, arr._ptr, dim)); return(new AFArray(ptr)); }
public static Array Max(Array arr, int dim = -1) { IntPtr ptr; Internal.VERIFY(AFAlgorithm.af_max(out ptr, arr._ptr, getFNSD(dim, arr.Dimensions))); return(new Array(ptr)); }
public static SuperArray Max(SuperArray arr, uint dim) { AFArray y = CreateMajorSupportedArray(arr); IntPtr ptr; Internal.VERIFY(AFAlgorithm.af_max(out ptr, y._ptr, (int)dim)); return(new SuperArray(new AFArray(ptr))); }
public static SuperArray Max(SuperArray arr, uint[] dims) { AFArray y = CreateMajorSupportedArray(arr); IntPtr ptr = IntPtr.Zero; foreach (int dim in dims) { Internal.VERIFY(AFAlgorithm.af_max(out ptr, y._ptr, dim)); y._ptr = ptr; } return(new SuperArray(new AFArray(ptr))); }