First time here? Check out the FAQ!
answered 2016-11-09 22:38:04 +0200
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)