Turns an expression into a DiagVec object

Diag(expr)

## Arguments

expr

An Expression that represents a vector or square matrix.

## Value

An Expression representing the diagonal vector/matrix.