public static Array Accumulate(Array arr, int dim = -1) { IntPtr ptr; Internal.VERIFY(AFAlgorithm.af_accum(out ptr, arr._ptr, getFNSD(dim, arr.Dimensions))); return(new Array(ptr)); }