class'diagonal()'

diagonal()

Extends from ModelicaReference.Icons.Information (Icon for general information packages).

Information

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.