Calculation of the sum of matrix rows

@lastpierre, you could do this as outlined in the post discussed previously:

And this one too …