|
D.5.1.13 delete_zero_rows
Procedure from library alexpoly.lib (see alexpoly_lib).
- Usage:
- delete_zero_rows(M); intmat M
- Return:
- intmat, deletes the rows in M which are completely zero.
If M is the zero matrix, the integer zero is returned!
Example:
| LIB "alexpoly.lib";
intmat M[5][3]=1,2,-2,0,0,0,1,0,0,0,2,1,0,0,0;
print(M);
==> 1 2 -2
==> 0 0 0
==> 1 0 0
==> 0 2 1
==> 0 0 0
print(delete_zero_rows(M));
==> 1 2 -2
==> 1 0 0
==> 0 2 1
|
|