TMtx.AddDiag Method

TMtx AddDiag(TVec DiagMtx)

Adds (main) diagonal matrix to the calling matrix.

#NameTypeDescription
1DiagMtxTVecsource TVec

Result: stored in self (calling object), returns self for chaining

Remarks:

The diagonal matrix is non-zero only at the main diagonal.