| 19 | } |
| 20 | |
| 21 | array scan(const array& in, const int dim, binaryOp op, bool inclusive_scan) { |
| 22 | af_array out = 0; |
| 23 | AF_THROW(af_scan(&out, in.get(), dim, op, inclusive_scan)); |
| 24 | return array(out); |
| 25 | } |
| 26 | |
| 27 | array scanByKey(const array& key, const array& in, const int dim, binaryOp op, |
| 28 | bool inclusive_scan) { |