| 1 | initial version |
Here is an option:
r=[Integer(len(A.nonzero_positions_in_column(j))) for j in range(A.dimensions()[1])]
A.insert_row(0, r)
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.