While not exactly bsxfun (), added two new features added to the Armadillo 3.4+, which relate to your question: . each_col () and .each_row (). They allow you to repeat a given vector operation in each column / row of the matrix. This includes adding, multiplying by elements, etc.
mtall source
share