예제 #1
0
 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);
 }
예제 #2
0
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);
}
예제 #3
0
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);
}
예제 #4
0
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);
}
예제 #5
0
 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);
 }
예제 #6
0
 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);
 }