ARTS built-in documentation server

Workspace Method DiagonalMatrix

Description

Create a diagonal matrix from a vector.
This creates a dense or sparse diagonal matrix with the elements of the given vector
 on the diagonal.

Authors: Simon Pfreundschuh

Synopsis

DiagonalMatrix( out, v )

Variables

GOUTout(Matrix, Sparse)The diagonal matrix
GINv(Vector)The vector containing the diagonal elements.