Click or drag to resize

DiagonalMatrixSetDiagonal(VectorComplex) Method

Copies the values of the given VectorT to the diagonal.

Namespace: Altaxo.Calc.LinearAlgebra.Complex
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public override void SetDiagonal(
	Vector<Complex> source
)

Parameters

source  VectorComplex
The vector to copy the values from. The length of the vector should be Min(Rows, Columns).
Exceptions
ExceptionCondition
ArgumentExceptionIf the length of source does not equal Min(Rows, Columns).
Remarks
For non-square matrices, the elements of source are copied to this[i,i].
See Also