Gets a Vector view of the diagonal elements of this instance.

Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Function GetDiagonal As Vector
C#
public Vector GetDiagonal ()
C++
public:
Vector^ GetDiagonal ()

Return Value

A Vector view of the diagonal of this Matrix.

Remarks

This property returns a vector view of the diagonal. Changing the elements of this Vector will also change the corresponding elements of the Matrix. If you want the result to be independent of the matrix, use the CloneData() method on the result.