Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sum of elements by row or column in a matrix in Sage

in Numpy, we can use sum(M,axis=0) or sum(M,axis=1)

what is the equivalent instruction syntax with sage ?