| 13 | |
| 14 | namespace af { |
| 15 | array accum(const array& in, const int dim) { |
| 16 | af_array out = 0; |
| 17 | AF_THROW(af_accum(&out, in.get(), dim)); |
| 18 | return array(out); |
| 19 | } |
| 20 | |
| 21 | array scan(const array& in, const int dim, binaryOp op, bool inclusive_scan) { |
| 22 | af_array out = 0; |