Given matrix of shape , produce vector of length such that
Input
A- input matrix of shape[m][n]stored in row-major order.m- the number of rows inA.n- the number of columns inA.
Output
r- output vector of lengthmcontaining the row-wise sums ofA.