Top
Back: concat
Forward: dsum
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.3 diag

Procedure from library matrix.lib (see matrix_lib).

Usage:
diag(p,n); p poly, n integer
diag(A); A matrix

Return:
diag(p,n): diagonal matrix, p times unit matrix of size n.
diag(A) : n*m x n*m diagonal matrix with entries all the entries of the nxm matrix A, taken from the 1st row, 2nd row etc of A

Example:
 


Top Back: concat Forward: dsum FastBack: Linear algebra FastForward: linalg_lib Up: matrix_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-6, Dec 2012, generated by texi2html.