If there is a matrix with some of its rows equal to zero: (its zero rows are randomly distributed and does not have an ordered arrangement): same as:
m={{1,2,I},{0,0,0},{I,I,3},{2,6,I},{0,0,0},{0,0,0},{1,6,4},{0,0,0},{1,4,5}}
How can I have a mm matrix without any zero rows and all its rows are m's rows
mm={{1,2,I},{I,I,3},{2,6,I},{1,6,4},{1,4,5}}
Cases[m, Except@{0 ..}]
seems the most natural way to me, but probably not the most efficient $\endgroup$Select[m, Norm[#] > 0&]
to perform better but I haven't tested it. $\endgroup$DeleteCases[m, {0 ..}]
should work. $\endgroup$m /. {0 ..} -> Sequence[]
$\endgroup$