Internal function to compute row sums of a matrix.
Chaitanya R. Acharya Maintainer: Chaitanya Acharya<c.acharya@duke.edu>