public static Array Sum(Array arr, int dim, double nanval) { IntPtr ptr; Internal.VERIFY(AFAlgorithm.af_sum_nan(out ptr, arr._ptr, getFNSD(dim, arr.Dimensions), nanval)); return(new Array(ptr)); }