public static Array Diff1(Array arr, int dim = 0)
        {
            IntPtr ptr;

            Internal.VERIFY(AFAlgorithm.af_diff1(out ptr, arr._ptr, dim));
            return(new Array(ptr));
        }