|
DiagonalMatrix
DiagonalMatrix[list] gives a matrix with the elements of list on the leading diagonal, and 0 elsewhere.
See The Mathematica Book: Section 1.8.3 and Section 3.7.1.
See also: IdentityMatrix, Tr, KroneckerDelta.
Related package: LinearAlgebra`MatrixManipulation`.
Further Examples
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT. SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION. | |