Home Online Manual
Top
Back: linear_relations
Forward: rm_unitcol
FastBack: Linear algebra
FastForward: linalg_lib
Up: matrix_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.3.1.26 rm_unitrow

Procedure from library matrix.lib (see matrix_lib).

Usage:
rm_unitrow(A); A matrix (being col-reduced)

Return:
matrix, obtained from A by deleting unit rows (having just one 1 and else 0 as entries) and associated columns

Example:
 
LIB "matrix.lib";
ring r=0,(A,B,C),dp;
matrix m[8][6]=
0,0,  0,   0, 2C, 0,
0,0,  0,   0, -4C,A,
A,-C2,0,   B, -A, 0,
0,0,  1/2B,-A,B,  0,
1,0,  0,   0, 0,  0,
0,0,  0,   2A,B,  0,
0,1,  0,   0, 0,  0,
0,0,  1,   0, 0,  0;
print(rm_unitrow(m));
==> 0, 2C, 0,
==> 0, -4C,A,
==> B, -A, 0,
==> -A,B,  0,
==> 2A,B,  0