What is the best way to add a vector to all columns of a Matrix with ArrayFire?
At the moment i'm using a gfor
loop, but that seems wrong for such a simple task.
gfor(af::seq i, M.dims(1)) {
M(af::span, i) += VECTOR;
}
Is there a better way?