|
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:
|