public static Array Diff2(Array arr, int dim = 0) { IntPtr ptr; Internal.VERIFY(AFAlgorithm.af_diff2(out ptr, arr._ptr, dim)); return(new Array(ptr)); }