sum horizontally along the rows of A

Call signature
('ij->i', A)
NumPy equivalent
sum(A, axis=1)