Skip to main content

diagonal

Method of RealMatrix.

Overloads​

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

diagonal() -> RealMatrix​

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

diagonal(integer index) -> RealMatrix​

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

Parameters​

  • index: The diagonal to extract.