Top
Back: D.3.1.1 compress
Forward: D.3.1.3 diag
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.3.1 matrix_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.3.1.2 concat

Procedure from library matrix.lib (see matrix_lib).

Usage:

concat(A1,A2,..); A1,A2,... matrices

Return:

matrix, concatenation of A1,A2,.... Number of rows of result matrix is max(nrows(A1),nrows(A2),...)

Example:

 
LIB "matrix.lib";
ring r=0,(x,y,z),ds;
matrix A[3][3]=1,2,3,x,y,z,x2,y2,z2;
matrix B[2][2]=1,0,2,0; matrix C[1][4]=4,5,x,y;
print(A);
→ 1, 2, 3,
→ x, y, z,
→ x2,y2,z2
print(B);
→ 1,0,
→ 2,0 
print(C);
→ 4,5,x,y
print(concat(A,B,C));
→ 1, 2, 3, 1,0,4,5,x,y,
→ x, y, z, 2,0,0,0,0,0,
→ x2,y2,z2,0,0,0,0,0,0 

Top Back: D.3.1.1 compress Forward: D.3.1.3 diag FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.3.1 matrix_lib Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.