From Armadillo version 5.6 onwards the .each_col()
and .each_row()
methods were expanded to handle out-of-place operations. Hence your suggested approach
m.each_row() % v.t();
should compile, see http://arma.sourceforge.net/docs.html#each_colrow.