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

D.3.1.5 flatten

Procedure from library matrix.lib (see matrix_lib).

Usage:
flatten(A); A matrix/smatrix

Return:
ideal, generated by all entries from A resp. all columns of A appended

Example:
 
LIB "matrix.lib";
ring r = 0,(x,y,z),ds;
matrix A[2][3] = 1,2,x,y,z,7;
print(A);
==> 1,2,x,
==> y,z,7 
flatten(A);
==> _[1]=1
==> _[2]=2
==> _[3]=x
==> _[4]=y
==> _[5]=z
==> _[6]=7
flatten(smatrix(A));
==> 1,
==> y,
==> 2,
==> z,
==> x,
==> 7 


Top Back: dsum Forward: genericmat FastBack: FastForward: Up: matrix_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.