DIAG Function
Makes a diagonal array
or extracts the diagonal of an array.
Usage
Input Parameters
Returned Value
Keywords
Example
a = DIAG( [1,1,1] ) & PM, a
1 0 0
0 1 0
0 0 1
PM, DIAG( a )
1
1
1


doc@boulder.vni.com
Copyright © 1999, Visual Numerics, Inc. All rights
reserved.