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
GOUT | out | (Matrix, Sparse) | The diagonal matrix |
GIN | v | (Vector) | The vector containing the diagonal elements. |