| 467 | } |
| 468 | |
| 469 | af_err af_sum(af_array *out, const af_array in, const int dim) { |
| 470 | return reduce_promote<af_add_t>(out, in, dim); |
| 471 | } |
| 472 | |
| 473 | af_err af_product(af_array *out, const af_array in, const int dim) { |
| 474 | return reduce_promote<af_mul_t>(out, in, dim); |