public static long CountAll(Array arr) { double r, i; Internal.VERIFY(AFAlgorithm.af_count_all(out r, out i, arr._ptr)); return((long)r); }