5 template <
typename F1,
typename F2,
typename F3>
6 void vecadd_core(
const F1 &a,
const F2 &b, F3 &y) {
10 const size_t aoffset = a.get_offset();
11 const size_t boffset = b.get_offset();
12 const size_t yoffset = y.get_offset();
18 internal::vadd(y.size(), a.data() + aoffset, b.data() + boffset,
19 y.data() + yoffset, y.get_device_mem_stat());