Can I do something like this:
auto minEl = min(a);
a -= minEl;
?
I get an unknown af::exception when I do that. For now, I'm doing this:
auto minEl = *min(a).host<float>();
a -= minEl;
But of course, it does an unnecessary download.
I borrow the term "broadcasting" from numpy, because there it works perfectly :)