public static Array Scan(Array arr, int dim, af_binary_op op, bool inclusive_scan = true) { IntPtr ptr; Internal.VERIFY(AFAlgorithm.af_scan(out ptr, arr._ptr, getFNSD(dim, arr.Dimensions), op, inclusive_scan)); return(new Array(ptr)); }