Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Like this

sage: M = matrix(2, 2, [1, 2, 3, 4])                                                   
sage: sum(M.coefficients())                                                     
10