Click or drag to resize

FloatComplexTriDiagMatrixDiagonal Method (Int32)

Returns a vector view of a diagonal of this matrix.

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


Type: SystemInt32
A diagonal.

Return Value

Type: FloatComplexVector
A vector view of the specified diagonal.
If k is zero, the main diagonal of the matrix is returned. If k is positive, the returned vector v satisfies:
v[i] = this[i,i+k]
If k is negative, the returned vector v satisfies:
v[i] = this[i-k,i]
See Also