DiagMatrix - get diagonal as column.
MatrixUtils - array to column or vector.