MatrixTSetDiagonal(VectorT) Method |
Copies the values of the given Vector to the diagonal.
Namespace: Altaxo.Calc.LinearAlgebraAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public virtual void SetDiagonal(
Vector<T> source
)
Parameters
- source VectorT
- The vector to copy the values from. The length of the vector should be
Min(Rows, Columns).
Exceptions Remarks For non-square matrices, the elements of source are copied to
this[i,i].
See Also