'diagonal()'

diagonal()

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Returns a diagonal matrix

Syntax

diagonal(v)

Description

Returns a square matrix with the elements of vector v on the diagonal and all other elements zero.