void max(array &val, array &idx, const array &in, const int dim) { af_array out = 0; af_array loc = 0; AF_THROW(af_imax(&out, &loc, in.get(), getFNSD(dim, in.dims()))); val = array(out); idx = array(loc); }
array var(const array& in, const array weights, dim_type dim) { af_array temp = 0; AF_THROW(af_var_weighted(&temp, in.get(), weights.get(), getFNSD(dim, in.dims()))); return array(temp); }
array var(const array& in, bool isbiased, dim_type dim) { af_array temp = 0; AF_THROW(af_var(&temp, in.get(), isbiased, getFNSD(dim, in.dims()))); return array(temp); }
AFAPI array median(const array& in, const dim_t dim) { af_array temp = 0; AF_THROW(af_median(&temp, in.get(), getFNSD(dim, in.dims()))); return array(temp); }
array count(const array &in, const int dim) { af_array out = 0; AF_THROW(af_count(&out, in.get(), getFNSD(dim, in.dims()))); return array(out); }
array anyTrue(const array &in, const int dim) { af_array out = 0; AF_THROW(af_any_true(&out, in.get(), getFNSD(dim, in.dims()))); return array(out); }