Gets a vector view of the specified diagonal
of this instance.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public virtual Vector<T> GetDiagonal(
int index,
Intent intent
)
Public Overridable Function GetDiagonal (
index As Integer,
intent As Intent
) As Vector(Of T)
public:
virtual Vector<T>^ GetDiagonal(
int index,
Intent intent
)
abstract GetDiagonal :
index : int *
intent : Intent -> Vector<'T>
override GetDiagonal :
index : int *
intent : Intent -> Vector<'T>
Parameters
- index
- Type: SystemInt32
The index of the diagonal. A value
of zero indicates the main diagonal. A value greater
than zero indicates a super-diagonal. A value less than
zero indicates a sub-diagonal. - intent
- Type: Extreme.MathematicsIntent
An Intent value that
specifies the intended use of the diagonal vector.
Return Value
Type:
VectorTA vector view of the diagonal
of this instance.
This property returns a vector view of the
diagonal. Changing the elements of this VectorT
will also change the corresponding elements of the
MatrixT. If you want
the result to be independent of the matrix,
use the CloneData method on the
result.
Reference