Click or drag to resize

DoubleComplexMatrixDiagonal(Int32) Method

Returns a vector view of a diagonal of this matrix.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public DoubleComplexVector Diagonal(
	int k
)

Parameters

k  Int32
Specifies which diagonal.

Return Value

DoubleComplexVector
A vector view of the specified diagonal.
Remarks
If k is zero, the main diagonal of the matrix is returned. If k is positive, the returned vector v satisfies:
C#
<c>v[i] = this[i,i+k]</c>
If k is negative, the returned vector v satisfies:
C#
v[i] = this[i-k,i]
See Also