Rowsum or columnsum of a matrix

There is no such function. You could pre-multiply the thing by a row_vector of ones.

1 Like