| 1 | initial version |
Like this
sage: M = matrix(2, 2, [1, 2, 3, 4])
sage: sum(M.coefficients())
10
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.