rowsum
Row sum refers to the sum of the entries in each row of a matrix. For a matrix A in R^{m×n}, the row-sum vector r in R^m has components r_i = sum_{j=1}^n a_{ij}. In matrix notation, r = A 1_n, where 1_n is the n-dimensional column vector of ones. The i-th entry of r is the total of the i-th row, and the total sum of all entries of A is 1^T r.
The row-sum concept is related to matrix norms and operations. The maximum absolute row sum, defined as
Special cases and applications include row-stochastic matrices, where every row sums to 1; such matrices are
In graph-theoretic contexts, the row sums of an adjacency matrix correspond to vertex degrees: for directed
Examples help illustrate: for A = [[1, 2, 0], [0, 4, -1]], the row-sum vector is r = [3,