[sage-support] Deleting all zero rows in a matrix

2018-10-02 Thread jamison . donohue
A=matrix(GF(q),[[0,0,0],[1,1,0],[0,1,1],[1,0,1]]) E=A.echelon_form() Given matrix E, [1 0 1] [0 1 1] [0 0 0] [0 0 0] How can I delete the all zero rows (rows 2 and 3) for all any entry of a matrix. I tried the for loop below, but it doesn't store any of the values and only gives one lines.

[sage-support] Deleting all zero rows in a matrix.

2018-10-02 Thread jamison . donohue
If I have a matrix [1,0,1] [0,1,1] [0,0,0], [0,0,0], how do I delete the zero rows? (in this case rows 2 and 3). I know how to manually delete them, but what about for all cases, regardless of input. I want to have all the 0 rows deleted in any matrix. Please Help! -- You received this messag