Top
Back: addcol
Forward: multcol
FastBack:
FastForward:
Up: matrix_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.3.1.17 addrow

Procedure from library matrix.lib (see matrix_lib).

Usage:
addrow(A,r1,p,r2); A matrix, p poly, r1, r2 positive integers

Return:
matrix, A being modified by adding p times row r1 to row r2

Example:
 
LIB "matrix.lib";
ring r=32003,(x,y,z),lp;
matrix A[3][3]=1,2,3,4,5,6,7,8,9;
print(A);
==> 1,2,3,
==> 4,5,6,
==> 7,8,9 
print(addrow(A,1,xy,3));
==> 1,   2,    3,   
==> 4,   5,    6,   
==> xy+7,2xy+8,3xy+9


Top Back: addcol Forward: multcol FastBack: FastForward: Up: matrix_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.4.0, 2024, generated by texi2html.