Gets a vector view of the specified diagonal
of this instance.
Namespace: Extreme.MathematicsAssembly: Extreme.Numerics.Net40 (in Extreme.Numerics.Net40.dll) Version: 6.0.16073.0 (6.0.17114.0)
public virtual Vector GetDiagonal(
int index,
Intent intent
)
Public Overridable Function GetDiagonal (
index As Integer,
intent As Intent
) As Vector
public:
virtual Vector^ GetDiagonal(
int index,
Intent intent
)
abstract GetDiagonal :
index : int *
intent : Intent -> Vector
override GetDiagonal :
index : int *
intent : Intent -> Vector
Parameters
- index
- Type: SystemInt32
The index of the diagonal. A value
of zero indicates the main diagonal. A value greater
than zero indicates a superdiagonal. A value less than
zero indicates a subdiagonal. - intent
- Type: Extreme.MathematicsIntent
A value that indicates the
intended use of the diagonal vector.
Return Value
Type:
VectorA vector view of the diagonal
of this
Matrix.
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.
Numerical Libraries
Supported in: 5.x
Reference