Skip to main content

diagonal

Method of ComplexMatrix.

Overloads

NameDescription
diagonal() -> ComplexMatrixReturns the diagonal elements of the ComplexMatrix as a column vector.
diagonal(integer index) -> ComplexMatrixReturns the diagonal elements of the ComplexMatrix as a column vector.

diagonal() -> ComplexMatrix

Returns the diagonal elements of the ComplexMatrix as a column vector.

diagonal(integer index) -> ComplexMatrix

Returns the diagonal elements of the ComplexMatrix as a column vector.

Parameters

  • index: The diagonal to extract.